summaryrefslogtreecommitdiff
path: root/tests/classes/tostring_004.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Improve type error messages when an object is givenMáté Kocsis2020-05-261-3/+3
| | | | | | | From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
* Define Stringable with __toString():string methodNicolas Grekas2020-03-021-3/+3
|
* Change argument error message formatMáté Kocsis2020-02-261-1/+1
| | | | Closes GH-5211
* Make type error messages more consistentMáté Kocsis2020-02-171-1/+1
| | | | Closes GH-5092
* Reindent phpt filesNikita Popov2020-02-031-3/+3
|
* Only accept string as the format parameter of *printf() functionsMáté Kocsis2019-12-091-1/+1
|
* Merge branch 'PHP-7.4'Nikita Popov2019-06-051-11/+26
|\
| * Allow exceptions in __toString()Nikita Popov2019-06-051-11/+26
| | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | Remove $errcontext argument to error handlersNikita Popov2019-02-051-1/+1
|/ | | | | | | | | I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in testsGabriel Caruso2018-10-141-1/+1
|
* Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-201-1/+1
| | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* Drop duplicate object-to-type noticesNikita Popov2015-06-221-1/+0
| | | | | We already generate a recoverable fatal for these earlier, no need to throw an additional notice.
* Add new tests for class/object functions and features.Robin Fernandes2008-03-061-0/+56