Statement on glibc/iconv Vulnerability

The Override class

(PHP 8 >= 8.3.0)

Giriş

Sınıf Sözdizimi

final class Override {
/* Yöntemler */
public __construct()
}

Örnekler

<?php

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

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

?>

Yukarıdaki örneğin PHP 8.3 çıktısı şuna benzer:

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

Ayrıca Bakınız

İçindekiler

add a note

User Contributed Notes

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