-
Notifications
You must be signed in to change notification settings - Fork 570
update stan #1029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update stan #1029
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <phive xmlns="https://phar.io/phive"> | ||
| <phar name="phpstan" version="1.11.9" installed="1.11.9" location="./tools/phpstan" copy="false"/> | ||
| <phar name="psalm" version="5.25.0" installed="5.25.0" location="./tools/psalm" copy="false"/> | ||
| <phar name="phpstan" version="2.0.1" installed="2.0.1" location="./tools/phpstan" copy="false"/> | ||
| <phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/> | ||
| </phive> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,37 @@ | ||
| parameters: | ||
| ignoreErrors: | ||
| - | ||
| message: "#^Method DebugKit\\\\Mailer\\\\Transport\\\\DebugKitTransport\\:\\:send\\(\\) should return array\\{headers\\: string, message\\: string\\} but returns array\\{headers\\: non\\-empty\\-array\\<string, string\\>, message\\: array\\{text\\: string, html\\: string\\}\\}\\.$#" | ||
| message: '#^Method DebugKit\\Mailer\\Transport\\DebugKitTransport\:\:send\(\) should return array\{headers\: string, message\: string\} but returns array\{headers\: non\-empty\-array\<string, string\>, message\: array\{text\: string, html\: string\}\}\.$#' | ||
| identifier: return.type | ||
| count: 1 | ||
| path: src/Mailer/Transport/DebugKitTransport.php | ||
|
|
||
| - | ||
| message: "#^Parameter \\#1 \\$request of method DebugKit\\\\ToolbarService\\:\\:saveData\\(\\) expects Cake\\\\Http\\\\ServerRequest, Psr\\\\Http\\\\Message\\\\ServerRequestInterface given\\.$#" | ||
| message: '#^Parameter \#1 \$request of method DebugKit\\ToolbarService\:\:saveData\(\) expects Cake\\Http\\ServerRequest, Psr\\Http\\Message\\ServerRequestInterface given\.$#' | ||
| identifier: argument.type | ||
| count: 1 | ||
| path: src/Middleware/DebugKitMiddleware.php | ||
|
|
||
| - | ||
| message: "#^Call to an undefined method Cake\\\\ORM\\\\Locator\\\\LocatorInterface\\:\\:genericInstances\\(\\)\\.$#" | ||
| message: '#^PHPDoc tag @property for property DebugKit\\Model\\Table\\PanelsTable\:\:\$Requests contains unresolvable type\.$#' | ||
| identifier: propertyTag.unresolvableType | ||
| count: 1 | ||
| path: src/Model/Table/PanelsTable.php | ||
|
|
||
| - | ||
| message: '#^Call to an undefined method Cake\\ORM\\Locator\\LocatorInterface\:\:genericInstances\(\)\.$#' | ||
| identifier: method.notFound | ||
| count: 1 | ||
| path: src/Panel/SqlLogPanel.php | ||
|
|
||
| - | ||
| message: "#^Dead catch \\- Cake\\\\Core\\\\Exception\\\\CakeException is never thrown in the try block\\.$#" | ||
| message: '#^Dead catch \- Cake\\Core\\Exception\\CakeException is never thrown in the try block\.$#' | ||
| identifier: catch.neverThrown | ||
| count: 1 | ||
| path: src/ToolbarService.php | ||
|
|
||
| - | ||
| message: "#^Unreachable statement \\- code above always terminates\\.$#" | ||
| message: '#^Unreachable statement \- code above always terminates\.$#' | ||
| identifier: deadCode.unreachable | ||
| count: 1 | ||
| path: src/ToolbarService.php |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ | |
|
|
||
| use Cake\Core\Configure; | ||
| use Cake\Database\Driver; | ||
| use Cake\Datasource\ConnectionInterface; | ||
| use Cake\Datasource\ConnectionManager; | ||
| use Cake\ORM\Locator\LocatorAwareTrait; | ||
| use Cake\ORM\Table; | ||
|
|
@@ -52,10 +51,7 @@ public function initialize(): void | |
|
|
||
| foreach ($configs as $name) { | ||
| $connection = ConnectionManager::get($name); | ||
| if ( | ||
| $connection->configName() === 'debug_kit' | ||
| || !$connection instanceof ConnectionInterface | ||
| ) { | ||
| if ($connection->configName() === 'debug_kit') { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm.. 4.x allowed the Guess we killed that in 5.0 by adding |
||
| continue; | ||
| } | ||
| $driver = $connection->getDriver(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line either must return the controller object or throws an exception, if no subject is present. Therefore the whole nullable checks are not needed anymore.