Skip to content

Commit c5492c6

Browse files
committed
🚿 can you please shut up, phpstan?
1 parent dafc580 commit c5492c6

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

phpstan-baseline.neon

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,42 @@ parameters:
2020
count: 2
2121
path: examples/totp.php
2222

23+
-
24+
rawMessage: 'Method chillerlan\Authenticator\Authenticator::__construct() has parameter $options with no value type specified in iterable type iterable.'
25+
identifier: missingType.iterableValue
26+
count: 1
27+
path: src/Authenticator.php
28+
29+
-
30+
rawMessage: 'Method chillerlan\Authenticator\Authenticator::setOptions() has parameter $options with no value type specified in iterable type iterable.'
31+
identifier: missingType.iterableValue
32+
count: 1
33+
path: src/Authenticator.php
34+
35+
-
36+
rawMessage: 'Parameter #1 $properties of class chillerlan\Authenticator\AuthenticatorOptions constructor expects array<string, mixed>|null, iterable given.'
37+
identifier: argument.type
38+
count: 1
39+
path: src/Authenticator.php
40+
41+
-
42+
rawMessage: 'Method chillerlan\Authenticator\Authenticators\AuthenticatorAbstract::__construct() has parameter $options with no value type specified in iterable type iterable.'
43+
identifier: missingType.iterableValue
44+
count: 1
45+
path: src/Authenticators/AuthenticatorAbstract.php
46+
47+
-
48+
rawMessage: 'Method chillerlan\Authenticator\Authenticators\AuthenticatorAbstract::setOptions() has parameter $options with no value type specified in iterable type iterable.'
49+
identifier: missingType.iterableValue
50+
count: 1
51+
path: src/Authenticators/AuthenticatorAbstract.php
52+
53+
-
54+
rawMessage: 'Parameter #1 $properties of class chillerlan\Authenticator\AuthenticatorOptions constructor expects array<string, mixed>|null, iterable given.'
55+
identifier: argument.type
56+
count: 1
57+
path: src/Authenticators/AuthenticatorAbstract.php
58+
2359
-
2460
rawMessage: Cannot access offset 'server_time' on mixed.
2561
identifier: offsetAccess.nonOffsetAccessible
@@ -51,17 +87,47 @@ parameters:
5187
in the next major version (6.x)
5288
'''
5389
identifier: method.deprecated
54-
count: 7
90+
count: 1
5591
path: tests/AuthenticatorTest.php
5692

93+
-
94+
rawMessage: 'Method chillerlan\AuthenticatorTest\Authenticators\AuthenticatorInterfaceTestAbstract::uriSettingsProvider() return type has no value type specified in iterable type array.'
95+
identifier: missingType.iterableValue
96+
count: 1
97+
path: tests/Authenticators/AuthenticatorInterfaceTestAbstract.php
98+
99+
-
100+
rawMessage: 'Parameter #1 $options of method chillerlan\Authenticator\Authenticators\AuthenticatorInterface::setOptions() expects chillerlan\Settings\SettingsContainerInterface, array<string, mixed> given.'
101+
identifier: argument.type
102+
count: 1
103+
path: tests/Authenticators/AuthenticatorInterfaceTestAbstract.php
104+
105+
-
106+
rawMessage: 'Method chillerlan\AuthenticatorTest\Authenticators\HOTPTest::uriSettingsProvider() return type has no value type specified in iterable type array.'
107+
identifier: missingType.iterableValue
108+
count: 1
109+
path: tests/Authenticators/HOTPTest.php
110+
57111
-
58112
rawMessage: 'Call to function is_int() with 59|1111111109|1111111111|1234567890|2000000000|20000000000 will always evaluate to true.'
59113
identifier: function.alreadyNarrowedType
60114
count: 1
61115
path: tests/Authenticators/SteamGuardTest.php
62116

117+
-
118+
rawMessage: 'Method chillerlan\AuthenticatorTest\Authenticators\SteamGuardTest::uriSettingsProvider() return type has no value type specified in iterable type array.'
119+
identifier: missingType.iterableValue
120+
count: 1
121+
path: tests/Authenticators/SteamGuardTest.php
122+
63123
-
64124
rawMessage: 'Call to function is_int() with 59|1111111109|1111111111|1234567890|2000000000|20000000000 will always evaluate to true.'
65125
identifier: function.alreadyNarrowedType
66126
count: 1
67127
path: tests/Authenticators/TOTPTest.php
128+
129+
-
130+
rawMessage: 'Method chillerlan\AuthenticatorTest\Authenticators\TOTPTest::uriSettingsProvider() return type has no value type specified in iterable type array.'
131+
identifier: missingType.iterableValue
132+
count: 1
133+
path: tests/Authenticators/TOTPTest.php

0 commit comments

Comments
 (0)