Skip to content

Commit 0555b7f

Browse files
committed
made types consistent with those defined in Hack
1 parent f50b2c5 commit 0555b7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+81
-81
lines changed

src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ public function getEnvironment()
112112
*/
113113
public function getDebug()
114114
{
115-
return (Boolean) $this->container->getParameter('kernel.debug');
115+
return (bool) $this->container->getParameter('kernel.debug');
116116
}
117117
}

src/Symfony/Bundle/WebProfilerBundle/EventListener/WebDebugToolbarListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class WebDebugToolbarListener implements EventSubscriberInterface
4141
public function __construct(\Twig_Environment $twig, $interceptRedirects = false, $mode = self::ENABLED, $position = 'bottom')
4242
{
4343
$this->twig = $twig;
44-
$this->interceptRedirects = (Boolean) $interceptRedirects;
45-
$this->mode = (integer) $mode;
44+
$this->interceptRedirects = (bool) $interceptRedirects;
45+
$this->mode = (int) $mode;
4646
$this->position = $position;
4747
}
4848

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(array $server = array(), History $history = null, Co
7676
*/
7777
public function followRedirects($followRedirect = true)
7878
{
79-
$this->followRedirects = (Boolean) $followRedirect;
79+
$this->followRedirects = (bool) $followRedirect;
8080
}
8181

8282
/**
@@ -107,7 +107,7 @@ public function insulate($insulated = true)
107107
// @codeCoverageIgnoreEnd
108108
}
109109

110-
$this->insulated = (Boolean) $insulated;
110+
$this->insulated = (bool) $insulated;
111111
}
112112

113113
/**

src/Symfony/Component/BrowserKit/Cookie.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public function __construct($name, $value, $expires = null, $path = null, $domai
6969
$this->rawValue = urlencode($value);
7070
}
7171
$this->name = $name;
72-
$this->expires = null === $expires ? null : (integer) $expires;
72+
$this->expires = null === $expires ? null : (int) $expires;
7373
$this->path = empty($path) ? '/' : $path;
7474
$this->domain = $domain;
75-
$this->secure = (Boolean) $secure;
76-
$this->httponly = (Boolean) $httponly;
75+
$this->secure = (bool) $secure;
76+
$this->httponly = (bool) $httponly;
7777
}
7878

7979
/**

src/Symfony/Component/ClassLoader/ClassCollectionLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static function fixNamespaceDeclarations($source)
200200
*/
201201
public static function enableTokenizer($bool)
202202
{
203-
self::$useTokenizer = (Boolean) $bool;
203+
self::$useTokenizer = (bool) $bool;
204204
}
205205

206206
/**

src/Symfony/Component/Config/ConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ConfigCache
3737
public function __construct($file, $debug)
3838
{
3939
$this->file = $file;
40-
$this->debug = (Boolean) $debug;
40+
$this->debug = (bool) $debug;
4141
}
4242

4343
/**

src/Symfony/Component/Config/Definition/ArrayNode.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($name, NodeInterface $parent = null)
5353

5454
public function setNormalizeKeys($normalizeKeys)
5555
{
56-
$this->normalizeKeys = (Boolean) $normalizeKeys;
56+
$this->normalizeKeys = (bool) $normalizeKeys;
5757
}
5858

5959
/**
@@ -113,7 +113,7 @@ public function setXmlRemappings(array $remappings)
113113
*/
114114
public function setAddIfNotSet($boolean)
115115
{
116-
$this->addIfNotSet = (Boolean) $boolean;
116+
$this->addIfNotSet = (bool) $boolean;
117117
}
118118

119119
/**
@@ -123,7 +123,7 @@ public function setAddIfNotSet($boolean)
123123
*/
124124
public function setAllowFalse($allow)
125125
{
126-
$this->allowFalse = (Boolean) $allow;
126+
$this->allowFalse = (bool) $allow;
127127
}
128128

129129
/**
@@ -133,7 +133,7 @@ public function setAllowFalse($allow)
133133
*/
134134
public function setAllowNewKeys($allow)
135135
{
136-
$this->allowNewKeys = (Boolean) $allow;
136+
$this->allowNewKeys = (bool) $allow;
137137
}
138138

139139
/**
@@ -143,7 +143,7 @@ public function setAllowNewKeys($allow)
143143
*/
144144
public function setPerformDeepMerging($boolean)
145145
{
146-
$this->performDeepMerging = (Boolean) $boolean;
146+
$this->performDeepMerging = (bool) $boolean;
147147
}
148148

149149
/**
@@ -153,7 +153,7 @@ public function setPerformDeepMerging($boolean)
153153
*/
154154
public function setIgnoreExtraKeys($boolean)
155155
{
156-
$this->ignoreExtraKeys = (Boolean) $boolean;
156+
$this->ignoreExtraKeys = (bool) $boolean;
157157
}
158158

159159
/**

src/Symfony/Component/Config/Definition/BaseNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function addEquivalentValue($originalValue, $equivalentValue)
142142
*/
143143
public function setRequired($boolean)
144144
{
145-
$this->required = (Boolean) $boolean;
145+
$this->required = (bool) $boolean;
146146
}
147147

148148
/**
@@ -152,7 +152,7 @@ public function setRequired($boolean)
152152
*/
153153
public function setAllowOverwrite($allow)
154154
{
155-
$this->allowOverwrite = (Boolean) $allow;
155+
$this->allowOverwrite = (bool) $allow;
156156
}
157157

158158
/**

src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function ignoreExtraKeys()
309309
*/
310310
public function normalizeKeys($bool)
311311
{
312-
$this->normalizeKeys = (Boolean) $bool;
312+
$this->normalizeKeys = (bool) $bool;
313313

314314
return $this;
315315
}

src/Symfony/Component/Config/Definition/VariableNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getDefaultValue()
5959
*/
6060
public function setAllowEmptyValue($boolean)
6161
{
62-
$this->allowEmptyValue = (Boolean) $boolean;
62+
$this->allowEmptyValue = (bool) $boolean;
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)