Commit af9c329e 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

(cherry picked from commit 99c902a2)
parent 1513f1cd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.');
  }