Skip to content

Commit 114362e

Browse files
authored
Merge pull request #25 from Recras/pull-upstream-1.5.10
Pull upstream FriendsOfSymfony1/symfony1:1.5.12
2 parents 2817063 + 20213bd commit 114362e

File tree

7 files changed

+24
-9
lines changed

7 files changed

+24
-9
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
CHANGELOG
22
=========
33

4+
17/03/2018: Version 1.5.11
5+
--------------------------
6+
7+
* Fix a bug in the lime unit-testing lib #168
8+
* Fix error 'A non well formed numeric value' on sfValidatorFile #181
9+
* Fix usage of octet in recent patch #182
10+
* Allow PATCH as an option in functional tests #185
11+
* Fix case for isSubclassOf method #189
12+
* Remove typehint from exception handler #188
13+
* Fix counting of non-countable var for PHP 7.2 #178
14+
415
02/08/2017: Version 1.5.10
516
--------------------------
617

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ This is a community driven fork of symfony 1, as official support has been [inte
77

88
**Do not use it for new projects: this version is great to improve existing symfony1 applications, but [Symfony4](http://symfony.com/) is the way to go today.**
99

10-
All the enhancements and BC breaks are listed in the [WHATS_NEW](https://github.com/LExpress/symfony1/blob/master/WHATS_NEW.md) file, this include:
10+
All the enhancements and BC breaks are listed in the [WHATS_NEW](https://github.com/FriendsOfSymfony1/symfony1/blob/master/WHATS_NEW.md) file, this include:
1111

12-
- [DIC](https://github.com/LExpress/symfony1/wiki/ServiceContainer)
12+
- [DIC](https://github.com/FriendsOfSymfony1/symfony1/wiki/ServiceContainer)
1313
- Composer support
14-
- PHP 7.0 support
14+
- PHP 7.2 support
1515
- performance boost
1616
- new widgets & validators
1717
- some tickets fixed from the symfony trac
@@ -51,7 +51,7 @@ Note: On windows, if your project is a few directories down from the drive root,
5151
Option 2: Using Git submodules:
5252

5353
git init # your project
54-
git submodule add https://github.com/LExpress/symfony1.git lib/vendor/symfony
54+
git submodule add https://github.com/FriendsOfSymfony1/symfony1.git lib/vendor/symfony
5555
git submodule update --init --recursive
5656

5757
Documentation

lib/autoload/sfCoreAutoload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* The current symfony version.
1313
*/
14-
define('SYMFONY_VERSION', '1.5.11-dev');
14+
define('SYMFONY_VERSION', '1.5.12-dev');
1515

1616
/**
1717
* sfCoreAutoload class.

lib/form/sfFormField.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ public function getError()
324324
*/
325325
public function hasError()
326326
{
327-
return null !== $this->error && count($this->error);
327+
if ($this->error instanceof sfValidatorErrorSchema) {
328+
return $this->error->count() > 0;
329+
}
330+
331+
return $this->error !== null;
328332
}
329333
}

lib/plugins/sfDoctrinePlugin/lib/generator/sfDoctrineFormGenerator.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function getPluginModels()
164164
{
165165
$parent = new ReflectionClass('Doctrine_Record');
166166
$reflection = new ReflectionClass($modelName);
167-
if ($reflection->isSubClassOf($parent))
167+
if ($reflection->isSubclassOf($parent))
168168
{
169169
$this->pluginModels[$modelName] = $pluginName;
170170

lib/response/sfWebResponse.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* sfWebResponse class.
1313
*
14-
* This class manages web reponses. It supports cookies and headers management.
14+
* This class manages web responses. It supports cookies and headers management.
1515
*
1616
* @package symfony
1717
* @subpackage response

lib/util/sfBrowserBase.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function call($uri, $method = 'get', $parameters = array(), $changeStack
272272

273273
// request parameters
274274
$_GET = $_POST = array();
275-
if (in_array(strtoupper($method), array('POST', 'DELETE', 'PUT')))
275+
if (in_array(strtoupper($method), array('POST', 'DELETE', 'PUT', 'PATCH')))
276276
{
277277
if (isset($parameters['_with_csrf']) && $parameters['_with_csrf'])
278278
{

0 commit comments

Comments
 (0)