mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
unify null checks - avoid method call in favor of strict check
This commit is contained in:
parent
8428928fd6
commit
6cf147e8c8
35 changed files with 62 additions and 62 deletions
|
@ -536,7 +536,7 @@ class HttpSocket extends CakeSocket {
|
|||
* @return mixed Either false on failure or a string containing the composed URL.
|
||||
*/
|
||||
public function url($url = null, $uriTemplate = null) {
|
||||
if (is_null($url)) {
|
||||
if ($url === null) {
|
||||
$url = '/';
|
||||
}
|
||||
if (is_string($url)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue