Skip to content

Commit 4f9dc9d

Browse files
Merge branch '3.4' into 4.0
* 3.4: [Cache] fix doctrine deprecation fix cs
2 parents 1adc9e9 + 17b5a2c commit 4f9dc9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Cache/Traits/PdoTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function createTable()
101101
$table->addColumn($this->idCol, $types[$this->driver], array('length' => 255));
102102
$table->addColumn($this->dataCol, 'blob', array('length' => 16777215));
103103
$table->addColumn($this->lifetimeCol, 'integer', array('unsigned' => true, 'notnull' => false));
104-
$table->addColumn($this->timeCol, 'integer', array('unsigned' => true, 'foo' => 'bar'));
104+
$table->addColumn($this->timeCol, 'integer', array('unsigned' => true));
105105
$table->setPrimaryKey(array($this->idCol));
106106

107107
foreach ($schema->toSql($conn->getDatabasePlatform()) as $sql) {

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ protected function prepareBaseUrl()
17481748

17491749
// Does the baseUrl have anything in common with the request_uri?
17501750
$requestUri = $this->getRequestUri();
1751-
if ($requestUri !== '' && $requestUri[0] !== '/') {
1751+
if ('' !== $requestUri && '/' !== $requestUri[0]) {
17521752
$requestUri = '/'.$requestUri;
17531753
}
17541754

@@ -1824,7 +1824,7 @@ protected function preparePathInfo()
18241824
if (false !== $pos = strpos($requestUri, '?')) {
18251825
$requestUri = substr($requestUri, 0, $pos);
18261826
}
1827-
if ($requestUri !== '' && $requestUri[0] !== '/') {
1827+
if ('' !== $requestUri && '/' !== $requestUri[0]) {
18281828
$requestUri = '/'.$requestUri;
18291829
}
18301830

0 commit comments

Comments
 (0)