<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt, branch php-7.4.3</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Use bool instead of boolean while throwing a type error</title>
<updated>2018-02-04T22:09:40+00:00</updated>
<author>
<name>Gabriel Caruso</name>
<email>carusogabriel34@gmail.com</email>
</author>
<published>2018-02-04T18:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=fef879a2d63899ed25f39b4581c16682afdd0a8f'/>
<id>fef879a2d63899ed25f39b4581c16682afdd0a8f</id>
<content type='text'>
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".

This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which
implements the same change for integer-&gt;int.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".

This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which
implements the same change for integer-&gt;int.
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement #38992: invoke() and invokeArgs() static method calls should match</title>
<updated>2016-08-07T23:43:03+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-08-07T23:27:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=f706897f330038d17570f5d0e6091e06d90179a6'/>
<id>f706897f330038d17570f5d0e6091e06d90179a6</id>
<content type='text'>
We don't want ReflectionMethod::invoke() to simply ignore its first argument,
if the method to invoke is a static method. Instead we match its ZPP with
that of ReflectionMethod::invokeArgs(). Furthermore, we apply the DRY
principle by factoring out the code to a common helper function to prevent
inadvertent future divergence of the implementations of both methods.

As can be seen from the necessity to adapt some test cases, this causes a
BC break for some pathological cases. Therefore we apply this patch to PHP
7.1 only, which is still in beta phase.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't want ReflectionMethod::invoke() to simply ignore its first argument,
if the method to invoke is a static method. Instead we match its ZPP with
that of ReflectionMethod::invokeArgs(). Furthermore, we apply the DRY
principle by factoring out the code to a common helper function to prevent
inadvertent future divergence of the implementations of both methods.

As can be seen from the necessity to adapt some test cases, this causes a
BC break for some pathological cases. Therefore we apply this patch to PHP
7.1 only, which is still in beta phase.
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop SKIPIF check for ext/reflection.</title>
<updated>2008-05-24T13:34:22+00:00</updated>
<author>
<name>Sebastian Bergmann</name>
<email>sebastian@php.net</email>
</author>
<published>2008-05-24T13:34:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=30a8d14fbcc53523e47dec49ece8677321137cd4'/>
<id>30a8d14fbcc53523e47dec49ece8677321137cd4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding PHPT tests for the ReflectionMethod class.</title>
<updated>2008-01-03T09:07:07+00:00</updated>
<author>
<name>Steve Seear</name>
<email>stevseea@php.net</email>
</author>
<published>2008-01-03T09:07:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=af2dfe2e45183ea56a8d74faf578db503f974d71'/>
<id>af2dfe2e45183ea56a8d74faf578db503f974d71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
