mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00

RFC: https://wiki.php.net/rfc/token_as_object Relative to the RFC, this also adds a __toString() method, as discussed on list. Closes GH-5176.
15 lines
351 B
PHP
15 lines
351 B
PHP
--TEST--
|
|
Check that the PhpToken constructor is final
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("tokenizer")) print "skip tokenizer extension not enabled"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class MyPhpToken extends PhpToken {
|
|
public function __construct() {
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot override final method PhpToken::__construct() in %s on line %d
|