summaryrefslogtreecommitdiff
path: root/Zend/tests/parameter_default_values/internal_declaration_error_const.phpt
blob: 9335abd5d6a9124e7d3354572af7c79f8e886f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
The default value is a constant in the parent class method's signature.
--FILE--
<?php
class MyDateTimeZone extends DateTimeZone
{
    public function getTransitions()
    {
    }
}
?>
--EXPECTF--
Fatal error: Declaration of MyDateTimeZone::getTransitions() must be compatible with DateTimeZone::getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX) in %s on line %d