Skip to content

Commit 0f7f1a6

Browse files
authored
refactor: fix property.protected errors (#9517)
1 parent ea2ee24 commit 0f7f1a6

File tree

5 files changed

+14
-57
lines changed

5 files changed

+14
-57
lines changed

system/Encryption/Encryption.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
* This class determines the driver, cipher, and mode to use, and then
2424
* initializes the appropriate encryption handler.
2525
*
26+
* @property-read string $digest
27+
* @property-read string $driver
28+
* @property-read list<string> $drivers
29+
* @property-read string $key
30+
*
2631
* @see \CodeIgniter\Encryption\EncryptionTest
2732
*/
2833
class Encryption

system/I18n/TimeDifference.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
use IntlCalendar;
1818

1919
/**
20-
* Class TimeDifference
20+
* @property-read float|int $days
21+
* @property-read float|int $hours
22+
* @property-read float|int $minutes
23+
* @property-read float|int $months
24+
* @property-read int $seconds
25+
* @property-read float|int $weeks
26+
* @property-read float|int $years
2127
*
2228
* @see \CodeIgniter\I18n\TimeDifferenceTest
2329
*/
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 3 errors
1+
# total 2 errors
22

33
parameters:
44
ignoreErrors:
@@ -11,8 +11,3 @@ parameters:
1111
message: '#^Static property CodeIgniter\\Email\\Email\:\:\$func_overload \(bool\) in isset\(\) is not nullable\.$#'
1212
count: 1
1313
path: ../../system/Email/Email.php
14-
15-
-
16-
message: '#^Property CodeIgniter\\I18n\\TimeDifference\:\:\$days \(int\) in isset\(\) is not nullable\.$#'
17-
count: 1
18-
path: ../../tests/system/I18n/TimeDifferenceTest.php

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 3605 errors
1+
# total 3589 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon
@@ -31,7 +31,6 @@ includes:
3131
- property.nonObject.neon
3232
- property.notFound.neon
3333
- property.phpDocType.neon
34-
- property.protected.neon
3534
- property.readOnlyByPhpDocAssignOutOfClass.neon
3635
- property.readOnlyByPhpDocDefaultValue.neon
3736
- staticMethod.notFound.neon

utils/phpstan-baseline/property.protected.neon

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

0 commit comments

Comments
 (0)