mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add Composer autoloading functions and PHPStan for testing
This commit is contained in:
parent
e198c4db65
commit
f5d7d4e02a
1518 changed files with 169063 additions and 30 deletions
33
vendor/nikic/php-parser/test/code/formatPreservation/modifierChange.test
vendored
Normal file
33
vendor/nikic/php-parser/test/code/formatPreservation/modifierChange.test
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
Modifier change
|
||||
-----
|
||||
<?php
|
||||
class Foo {}
|
||||
abstract class Bar {
|
||||
const
|
||||
FOO = 42;
|
||||
|
||||
var $foo
|
||||
= 24;
|
||||
|
||||
public function
|
||||
foo() {}
|
||||
}
|
||||
-----
|
||||
$stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT;
|
||||
$stmts[1]->flags = 0;
|
||||
$stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE;
|
||||
$stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED;
|
||||
$stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL;
|
||||
-----
|
||||
<?php
|
||||
abstract class Foo {}
|
||||
class Bar {
|
||||
private const
|
||||
FOO = 42;
|
||||
|
||||
protected $foo
|
||||
= 24;
|
||||
|
||||
public final function
|
||||
foo() {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue