Skip to content

Commit c74d19a

Browse files
author
Marcin Stodulski
committed
lib update
1 parent 8eb8a3a commit c74d19a

File tree

4 files changed

+21
-32
lines changed

4 files changed

+21
-32
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"require": {
66
"php": ">=8.1",
7-
"phpunit/phpunit": "9.5.*"
7+
"phpunit/phpunit": "10.3.*"
88
},
99
"keywords": ["rbac", "permissions"],
1010
"homepage": "https://devsprint.pl",
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
"require-dev": {
24-
"vimeo/psalm": "^4.28",
25-
"psalm/plugin-symfony": "^3.1"
24+
"vimeo/psalm": "^5.15",
25+
"psalm/plugin-symfony": "^5.0"
2626
}
2727
}

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
findUnusedBaselineEntry="true"
9+
findUnusedCode="false"
810
>
911
<projectFiles>
1012
<directory name="src" />

src/interfaces/RoleInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ interface RoleInterface
1414
{
1515
public function getParent(): ?RoleInterface;
1616
public function getCode(): string;
17-
//the lack of the returned type allows you to program it yourself i your classes
18-
public function getPermissions();
17+
public function getPermissions(): mixed;
1918
public function isHasAllPermissions(): bool;
2019
}

tests/phpunit.xml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4-
bootstrap="tests/bootstrap.php"
5-
cacheResultFile=".phpunit.cache/test-results"
6-
executionOrder="depends,defects"
7-
beStrictAboutCoversAnnotation="true"
8-
beStrictAboutOutputDuringTests="true"
9-
beStrictAboutTodoAnnotatedTests="true"
10-
convertDeprecationsToExceptions="true"
11-
failOnRisky="true"
12-
failOnWarning="true"
13-
verbose="true">
14-
<testsuites>
15-
<testsuite name="default">
16-
<directory>tests</directory>
17-
</testsuite>
18-
</testsuites>
19-
20-
<coverage>
21-
<include>
22-
<directory suffix=".php">../src/</directory>
23-
</include>
24-
<exclude>
25-
<directory suffix=".php">../vendor</directory>
26-
</exclude>
27-
</coverage>
28-
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" bootstrap="tests/bootstrap.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" failOnRisky="true" failOnWarning="true" cacheDirectory=".phpunit.cache" beStrictAboutCoverageMetadata="true">
3+
<testsuites>
4+
<testsuite name="default">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage/>
9+
<source>
10+
<include>
11+
<directory suffix=".php">../src/</directory>
12+
</include>
13+
<exclude>
14+
<directory suffix=".php">../vendor</directory>
15+
</exclude>
16+
</source>
2917
</phpunit>

0 commit comments

Comments
 (0)