Skip to content
Snippets Groups Projects
Commit 99c902a2 authored by catch's avatar catch
Browse files

Issue #3366288 by andypost, longwave: Add [#\ReturnTypeWillChange] attribute...

Issue #3366288 by andypost, longwave: Add [#\ReturnTypeWillChange] attribute to TemporaryArrayObjectThrowingExceptions for PHP 8.3 compatibility
parent fdf05ab0
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ public function append($value): void {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function asort($flags = SORT_REGULAR): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......@@ -141,6 +142,7 @@ public function getIteratorClass(): string {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function ksort($flags = SORT_REGULAR): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......@@ -155,6 +157,7 @@ public function ksort($flags = SORT_REGULAR): bool {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function natcasesort(): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......@@ -169,6 +172,7 @@ public function natcasesort(): bool {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function natsort(): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......@@ -282,6 +286,7 @@ public function setIteratorClass($iteratorClass): void {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function uasort($callback): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......@@ -301,6 +306,7 @@ public function uasort($callback): bool {
* This class does not support this action but it must implement it, because
* it is extending \ArrayObject.
*/
#[\ReturnTypeWillChange]
public function uksort($callback): bool {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \ArrayObject.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment