Skip to content

Commit bbaac4b

Browse files
committed
Fix static analysis
1 parent 57d1518 commit bbaac4b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/Security/Security.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ abstract class BaseSecurity
3737
*/
3838
private $coreSecurity;
3939

40+
/**
41+
* @param CoreSecurity|BundleSecurity $security
42+
*/
4043
public function __construct($security)
4144
{
4245
// @phpstan-ignore-next-line

tests/ExpressionLanguage/ExpressionFunction/Security/GetUserTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ protected function getFunctions()
2424
return [new GetUser()];
2525
}
2626

27+
/**
28+
* @return CoreSecurity|BundleSecurity|MockObject
29+
*/
2730
protected function getMockedSecurity()
2831
{
2932
if (Kernel::VERSION_ID >= 60200) {
@@ -33,6 +36,9 @@ protected function getMockedSecurity()
3336
}
3437
}
3538

39+
/**
40+
* @return BundleSecurity|CoreSecurity
41+
*/
3642
protected function getSecurityWithStorage(TokenStorageInterface $storage)
3743
{
3844
if (Kernel::VERSION_ID >= 60200) {

tests/ExpressionLanguage/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function getSecurityIsGrantedWithExpectation($with, $expects = null, $
100100
}
101101

102102
/**
103-
* @return CoreSecurity|MockObject
103+
* @return CoreSecurity|BundleSecurity|MockObject
104104
*/
105105
private function getCoreSecurityMock()
106106
{

0 commit comments

Comments
 (0)