Skip to content

Commit 8d6ff45

Browse files
committed
made types consistent with those defined in Hack
1 parent 67338a8 commit 8d6ff45

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

EventListener/ProfilerListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function __construct(Profiler $profiler, RequestMatcherInterface $matcher
4949
{
5050
$this->profiler = $profiler;
5151
$this->matcher = $matcher;
52-
$this->onlyException = (Boolean) $onlyException;
53-
$this->onlyMasterRequests = (Boolean) $onlyMasterRequests;
52+
$this->onlyException = (bool) $onlyException;
53+
$this->onlyMasterRequests = (bool) $onlyMasterRequests;
5454
$this->children = new \SplObjectStorage();
5555
$this->profiles = array();
5656
}

HttpCache/Esi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function needsEsiParsing(Response $response)
107107
return false;
108108
}
109109

110-
return (Boolean) preg_match('#content="[^"]*ESI/1.0[^"]*"#', $control);
110+
return (bool) preg_match('#content="[^"]*ESI/1.0[^"]*"#', $control);
111111
}
112112

113113
/**

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
7777
public function __construct($environment, $debug)
7878
{
7979
$this->environment = $environment;
80-
$this->debug = (Boolean) $debug;
80+
$this->debug = (bool) $debug;
8181
$this->booted = false;
8282
$this->rootDir = $this->getRootDir();
8383
$this->name = $this->getName();

Profiler/PdoProfilerStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function find($ip, $url, $limit, $method, $start = null, $end = null)
5959
$criteria = $criteria ? 'WHERE '.implode(' AND ', $criteria) : '';
6060

6161
$db = $this->initDb();
62-
$tokens = $this->fetch($db, 'SELECT token, ip, method, url, time, parent FROM sf_profiler_data '.$criteria.' ORDER BY time DESC LIMIT '.((integer) $limit), $args);
62+
$tokens = $this->fetch($db, 'SELECT token, ip, method, url, time, parent FROM sf_profiler_data '.$criteria.' ORDER BY time DESC LIMIT '.((int) $limit), $args);
6363
$this->close($db);
6464

6565
return $tokens;

Tests/Fixtures/KernelForTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public function isBooted()
4949

5050
public function setIsBooted($value)
5151
{
52-
$this->booted = (Boolean) $value;
52+
$this->booted = (bool) $value;
5353
}
5454
}

0 commit comments

Comments
 (0)