Skip to content

Commit 460a6f9

Browse files
authored
Merge pull request #307 from cakephp/3.x-update-stan
update stan
2 parents d178426 + 910d884 commit 460a6f9

6 files changed

Lines changed: 2 additions & 53 deletions

File tree

.phive/phars.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpstan" version="2.1.0" installed="2.1.0" location="./tools/phpstan" copy="false"/>
4-
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/>
3+
<phar name="phpstan" version="2.1.17" installed="2.1.17" location="./tools/phpstan" copy="false"/>
54
</phive>

composer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,7 @@
7070
"cs-check": "phpcs --colors -p src/ tests/",
7171
"cs-fix": "phpcbf --colors -p src/ tests/",
7272
"phpstan": "tools/phpstan analyse",
73-
"psalm": "tools/psalm --show-info=false",
74-
"psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml",
75-
"stan": [
76-
"@phpstan",
77-
"@psalm"
78-
],
73+
"stan": "@phpstan",
7974
"stan-baseline": "tools/phpstan --generate-baseline",
8075
"stan-setup": "phive install",
8176
"test": "phpunit",

psalm-baseline.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

psalm.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/Identity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class Identity extends IdentityDecorator implements AuthenIdentityInterface
2929
* Identity data
3030
*
3131
* @var \Authentication\IdentityInterface
32-
* @psalm-suppress NonInvariantDocblockPropertyType
3332
*/
3433
protected ArrayAccess|array $identity;
3534

src/Policy/OrmResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ protected function getEntityPolicy(EntityInterface $entity): mixed
107107
$class = get_class($entity);
108108
$entityNamespace = '\Model\Entity\\';
109109
$namespace = str_replace('\\', '/', substr($class, 0, (int)strpos($class, $entityNamespace)));
110-
/** @psalm-suppress PossiblyFalseOperand */
111110
$name = substr($class, strpos($class, $entityNamespace) + strlen($entityNamespace));
112111

113112
return $this->findPolicy($class, $name, $namespace);
@@ -124,7 +123,6 @@ protected function getRepositoryPolicy(RepositoryInterface $table): mixed
124123
$class = get_class($table);
125124
$tableNamespace = '\Model\Table\\';
126125
$namespace = str_replace('\\', '/', substr($class, 0, (int)strpos($class, $tableNamespace)));
127-
/** @psalm-suppress PossiblyFalseOperand */
128126
$name = substr($class, strpos($class, $tableNamespace) + strlen($tableNamespace));
129127

130128
return $this->findPolicy($class, $name, $namespace);

0 commit comments

Comments
 (0)