Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="2.1.0" installed="2.1.0" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/>
<phar name="phpstan" version="2.1.17" installed="2.1.17" location="./tools/phpstan" copy="false"/>
</phive>
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@
"cs-check": "phpcs --colors -p src/ tests/",
"cs-fix": "phpcbf --colors -p src/ tests/",
"phpstan": "tools/phpstan analyse",
"psalm": "tools/psalm --show-info=false",
"psalm-baseline": "tools/psalm --set-baseline=psalm-baseline.xml",
"stan": [
"@phpstan",
"@psalm"
],
"stan": "@phpstan",
"stan-baseline": "tools/phpstan --generate-baseline",
"stan-setup": "phive install",
"test": "phpunit",
Expand Down
13 changes: 0 additions & 13 deletions psalm-baseline.xml

This file was deleted.

29 changes: 0 additions & 29 deletions psalm.xml

This file was deleted.

1 change: 0 additions & 1 deletion src/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Identity extends IdentityDecorator implements AuthenIdentityInterface
* Identity data
*
* @var \Authentication\IdentityInterface
* @psalm-suppress NonInvariantDocblockPropertyType
*/
protected ArrayAccess|array $identity;

Expand Down
2 changes: 0 additions & 2 deletions src/Policy/OrmResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ protected function getEntityPolicy(EntityInterface $entity): mixed
$class = get_class($entity);
$entityNamespace = '\Model\Entity\\';
$namespace = str_replace('\\', '/', substr($class, 0, (int)strpos($class, $entityNamespace)));
/** @psalm-suppress PossiblyFalseOperand */
$name = substr($class, strpos($class, $entityNamespace) + strlen($entityNamespace));

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

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