diff --git a/system/Encryption/Encryption.php b/system/Encryption/Encryption.php index 93236a581f39..c233f1fdfe03 100644 --- a/system/Encryption/Encryption.php +++ b/system/Encryption/Encryption.php @@ -23,6 +23,11 @@ * This class determines the driver, cipher, and mode to use, and then * initializes the appropriate encryption handler. * + * @property-read string $digest + * @property-read string $driver + * @property-read list $drivers + * @property-read string $key + * * @see \CodeIgniter\Encryption\EncryptionTest */ class Encryption diff --git a/system/I18n/TimeDifference.php b/system/I18n/TimeDifference.php index 81ca92be6a80..b51baf252472 100644 --- a/system/I18n/TimeDifference.php +++ b/system/I18n/TimeDifference.php @@ -17,7 +17,13 @@ use IntlCalendar; /** - * Class TimeDifference + * @property-read float|int $days + * @property-read float|int $hours + * @property-read float|int $minutes + * @property-read float|int $months + * @property-read int $seconds + * @property-read float|int $weeks + * @property-read float|int $years * * @see \CodeIgniter\I18n\TimeDifferenceTest */ diff --git a/utils/phpstan-baseline/isset.property.neon b/utils/phpstan-baseline/isset.property.neon index e70991bfe0e2..3b82b6f05443 100644 --- a/utils/phpstan-baseline/isset.property.neon +++ b/utils/phpstan-baseline/isset.property.neon @@ -1,4 +1,4 @@ -# total 3 errors +# total 2 errors parameters: ignoreErrors: @@ -11,8 +11,3 @@ parameters: message: '#^Static property CodeIgniter\\Email\\Email\:\:\$func_overload \(bool\) in isset\(\) is not nullable\.$#' count: 1 path: ../../system/Email/Email.php - - - - message: '#^Property CodeIgniter\\I18n\\TimeDifference\:\:\$days \(int\) in isset\(\) is not nullable\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index c251023ac4e2..7cd42b1fec33 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 3605 errors +# total 3589 errors includes: - argument.type.neon - assign.propertyType.neon @@ -31,7 +31,6 @@ includes: - property.nonObject.neon - property.notFound.neon - property.phpDocType.neon - - property.protected.neon - property.readOnlyByPhpDocAssignOutOfClass.neon - property.readOnlyByPhpDocDefaultValue.neon - staticMethod.notFound.neon diff --git a/utils/phpstan-baseline/property.protected.neon b/utils/phpstan-baseline/property.protected.neon deleted file mode 100644 index 04b9a637fcbc..000000000000 --- a/utils/phpstan-baseline/property.protected.neon +++ /dev/null @@ -1,48 +0,0 @@ -# total 15 errors - -parameters: - ignoreErrors: - - - message: '#^Access to protected property CodeIgniter\\Encryption\\Encryption\:\:\$digest\.$#' - count: 2 - path: ../../tests/system/Encryption/EncryptionTest.php - - - - message: '#^Access to protected property CodeIgniter\\Encryption\\Encryption\:\:\$key\.$#' - count: 3 - path: ../../tests/system/Encryption/EncryptionTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$days\.$#' - count: 4 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$hours\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$minutes\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$months\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$seconds\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$weeks\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php - - - - message: '#^Access to protected property CodeIgniter\\I18n\\TimeDifference\:\:\$years\.$#' - count: 1 - path: ../../tests/system/I18n/TimeDifferenceTest.php