Skip to content
Browse files

merged branch GromNaN/patch-1 (PR #42)

Commits
-------

6e2ebca Replace is_null by null comparison

Discussion
----------

Replace is_null by null comparison

---------------------------------------------------------------------------

by igorw at 2012-06-21T11:24:30Z

Why?

---------------------------------------------------------------------------

by GromNaN at 2012-06-21T11:29:57Z

This is known to be faster.
It was replaced everywhere in symfony.
  • Loading branch information...
2 parents 694448b + 6e2ebca commit 86cae5c9e85cd02f1703c774ddf12f2448a5938c @fabpot committed Jun 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Pimple.php
View
2 lib/Pimple.php
@@ -116,7 +116,7 @@ function share(Closure $callable)
return function ($c) use ($callable) {
static $object;
- if (is_null($object)) {
+ if (null === $object) {
$object = $callable($c);
}

0 comments on commit 86cae5c

Please sign in to comment.
Something went wrong with that request. Please try again.