-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
order ClassComponentPRoeprtyExtension
- Loading branch information
1 parent
a17818c
commit 986fdef
Showing
31 changed files
with
205 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":1,"defects":{"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:8":7,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:11":7,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:14":7,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:17":7,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:21":7,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:23":7},"times":{"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:8":0.003,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:11":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:14":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:17":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:21":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions#\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:23":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:8\"":0.002,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:11\"":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:14\"":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:17\"":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:21\"":0,"PHPStanCakePHP2\\Test\\Feature\\ClassRegistryInitTest::testControllerExtensions with data set \"\/var\/www\/phpstan-cakephp-2\/tests\/Feature\/data\/class_registry_init.php:23\"":0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
return ECSConfig::configure() | ||
->withPaths([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
|
||
// add a single rule | ||
->withRules([ | ||
NoUnusedImportsFixer::class, | ||
]) | ||
|
||
// add sets - group of rules | ||
// ->withPreparedSets( | ||
// arrays: true, | ||
// namespaces: true, | ||
// spaces: true, | ||
// docblocks: true, | ||
// comments: true, | ||
// ) | ||
|
||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* Slim copy of | ||
* https://github.com/cakephp/cakephp/blob/2.10.24/lib/Cake/Controller/Component.php | ||
*/ | ||
class Component | ||
{ | ||
public $components = []; | ||
|
||
public function __get(string $name) | ||
{ | ||
if (isset($this->{$name})) { | ||
return $this->{$name}; | ||
} | ||
|
||
return 'some value'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,7 @@ | |
|
||
class Model | ||
{ | ||
|
||
public function __get(string $name) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* Slim copy of | ||
* https://github.com/cakephp/cakephp/blob/2.10.24/lib/Cake/Console/Shell.php | ||
*/ | ||
class Shell | ||
{ | ||
public function __get(string $name) | ||
{ | ||
if (isset($this->{$name})) { | ||
return $this->{$name}; | ||
} | ||
|
||
return 'some value'; | ||
} | ||
} |
Oops, something went wrong.