Skip to content

Commit 65722a8

Browse files
committed
refactor: fix property.protected errors
1 parent ea2ee24 commit 65722a8

File tree

5 files changed

+14
-57
lines changed

5 files changed

+14
-57
lines changed

Diff for: system/Encryption/Encryption.php

+5
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

Diff for: system/I18n/TimeDifference.php

+7-1
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
*/

Diff for: utils/phpstan-baseline/isset.property.neon

+1-6
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

Diff for: utils/phpstan-baseline/loader.neon

+1-2
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

Diff for: utils/phpstan-baseline/property.protected.neon

-48
This file was deleted.

0 commit comments

Comments
 (0)