mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
- There are no abstract static methods in classes, use interfaces
This commit is contained in:
parent
d178e8d3e4
commit
ffc4fbb91f
1 changed files with 4 additions and 15 deletions
|
@ -2,23 +2,12 @@
|
||||||
Test for abstract static classes
|
Test for abstract static classes
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
abstract class ezcDbHandler extends PDO
|
abstract class Test
|
||||||
{
|
{
|
||||||
public function __construct( $dbParams, $dsn )
|
|
||||||
{
|
|
||||||
$user = null;
|
|
||||||
$pass = null;
|
|
||||||
$driverOptions = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
abstract static public function getName();
|
abstract static public function getName();
|
||||||
|
|
||||||
static public function hasFeature( $feature )
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
DONE
|
DONE
|
||||||
--EXPECT--
|
--EXPECTF--
|
||||||
DONE
|
|
||||||
|
Fatal error: Static function Test::getName() cannot be abstract in %sabstract-static.php on line %d
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue