Nikita Popov
ee510eed68
Deprecate partially supported callables
...
This deprecates all callables that are accepted by
call_user_func($callable) but not by $callable(). In particular:
"self::method"
"parent::method"
"static::method"
["self", "method"]
["parent", "method"]
["static", "method"]
["Foo", "Bar::method"]
[new Foo, "Bar::method"]
RFC: https://wiki.php.net/rfc/deprecate_partially_supported_callables
Closes GH-7446.
2021-10-22 10:15:24 +02:00
Nikita Popov
840e441d2d
Fix parameter name in call_user_func() error message
...
This parameter name has been changed to $callback.
2021-07-29 12:48:25 +02:00
Máté Kocsis
d30cd7d7e7
Review the usage of apostrophes in error messages
...
Closes GH-5590
2020-07-10 21:05:28 +02:00
Máté Kocsis
960318ed95
Change argument error message format
...
Closes GH-5211
2020-02-26 15:00:08 +01:00
Máté Kocsis
ac0853eb26
Make type error messages more consistent
...
Closes GH-5092
2020-02-17 14:22:17 +01:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Felipe Pena
e3ced0b540
- Reverted fix for bug #51176
2010-11-03 01:35:26 +00:00
Felipe Pena
79f618833f
- Fixed bug #51176 (Static calling in non-static method behaves like $this->)
2010-03-02 00:16:40 +00:00
Dmitry Stogov
feb8580166
LSB parent/self forwarding
2008-07-24 09:42:18 +00:00
Felipe Pena
7ba0803964
- New tests
2008-06-05 18:33:00 +00:00