File tree Expand file tree Collapse file tree
tests/test_app/Controller/Component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,22 +14,6 @@ services:
1414 factory : CakeDC\PHPStan\Type\ControllerFetchTableDynamicReturnTypeExtension (Cake\Controller\Controller , fetchTable )
1515 tags :
1616 - phpstan.broker.dynamicMethodReturnTypeExtension
17- -
18- factory : CakeDC\PHPStan\Type\TableLocatorDynamicReturnTypeExtension (Cake\Command\Command , fetchTable )
19- tags :
20- - phpstan.broker.dynamicMethodReturnTypeExtension
21- -
22- factory : CakeDC\PHPStan\Type\TableLocatorDynamicReturnTypeExtension (Cake\Mailer\Mailer , fetchTable )
23- tags :
24- - phpstan.broker.dynamicMethodReturnTypeExtension
25- -
26- factory : CakeDC\PHPStan\Type\TableLocatorDynamicReturnTypeExtension (Cake\View\Cell , fetchTable )
27- tags :
28- - phpstan.broker.dynamicMethodReturnTypeExtension
29- -
30- factory : CakeDC\PHPStan\Type\TableLocatorDynamicReturnTypeExtension (Cake\Controller\Component , fetchTable )
31- tags :
32- - phpstan.broker.dynamicMethodReturnTypeExtension
3317 -
3418 factory : CakeDC\PHPStan\Type\TableLocatorDynamicReturnTypeExtension (Cake\ORM\Locator\LocatorInterface , get )
3519 tags :
Original file line number Diff line number Diff line change 1414namespace App \Controller \Component ;
1515
1616use Cake \Controller \Component ;
17+ use Cake \ORM \Locator \LocatorAwareTrait ;
1718
1819class WarningComponent extends Component
1920{
21+ use LocatorAwareTrait;
22+
2023 /**
2124 * @return void
2225 */
@@ -27,5 +30,6 @@ public function testWarning()
2730 */
2831 $ controller = $ this ->getController ();
2932 $ controller ->fetchTable ()->warning ();
33+ $ this ->fetchTable ('Users ' )->blockOld ();
3034 }
3135}
You can’t perform that action at this time.
0 commit comments