Statement on glibc/iconv Vulnerability

Die Klasse Override

(PHP 8 >= 8.3.0)

Einführung

Klassenbeschreibung

final class Override {
/* Methoden */
public __construct()
}

Beispiele

<?php

class Base {
protected function
foo(): void {}
}

final class
Extended extends Base {
#[
\Override]
protected function
boo(): void {}
}

?>

Das oben gezeigte Beispiel erzeugt mit PHP 8.3 eine ähnliche Ausgabe wie:

Fatal error: Extended::boo() has #[\Override] attribute, but no matching parent method exists

Inhaltsverzeichnis

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top