From edd2e2aca443cd889d755ed9fd7711e20a7c96f1 Mon Sep 17 00:00:00 2001 From: Paulo Magalhaes Date: Tue, 19 Mar 2024 12:04:32 +0000 Subject: [PATCH 1/3] Declare previously dynamic variables Avoid warning about dynamic variables in php8.2. --- lib/generator/sfPropelFormGenerator.class.php | 6 ++++++ lib/task/sfPropelGenerateModuleTask.class.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/lib/generator/sfPropelFormGenerator.class.php b/lib/generator/sfPropelFormGenerator.class.php index ec690c0ef..38774df76 100644 --- a/lib/generator/sfPropelFormGenerator.class.php +++ b/lib/generator/sfPropelFormGenerator.class.php @@ -23,6 +23,12 @@ class sfPropelFormGenerator extends sfGenerator protected $dbMap = null; + public + $params = null; + + public + $table = null; + /** * Initializes the current sfGenerator instance. * diff --git a/lib/task/sfPropelGenerateModuleTask.class.php b/lib/task/sfPropelGenerateModuleTask.class.php index 7d21c232e..6df035e96 100644 --- a/lib/task/sfPropelGenerateModuleTask.class.php +++ b/lib/task/sfPropelGenerateModuleTask.class.php @@ -20,6 +20,8 @@ */ class sfPropelGenerateModuleTask extends sfPropelBaseTask { + protected $constants; + /** * @see sfTask */ From ccb7e64f9039986300244353864f73fb9c8cba44 Mon Sep 17 00:00:00 2001 From: Paulo Magalhaes Date: Thu, 20 Nov 2025 09:51:23 +0000 Subject: [PATCH 2/3] Fix deprecation: implicitly nullable parameters --- lib/form/sfFormPropel.class.php | 4 ++-- lib/log/sfPropelLogger.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/form/sfFormPropel.class.php b/lib/form/sfFormPropel.class.php index 3ed268361..54fbb3e91 100755 --- a/lib/form/sfFormPropel.class.php +++ b/lib/form/sfFormPropel.class.php @@ -122,7 +122,7 @@ public function embedI18n($cultures, $decorator = null) * @param array $taintedValues An array of input values * @param array $taintedFiles An array of uploaded files (in the $_FILES or $_GET format) */ - public function bind(array $taintedValues = null, array $taintedFiles = null) + public function bind(?array $taintedValues = null, ?array $taintedFiles = null) { $this->addOptionalForms($taintedValues); return parent::bind($taintedValues, $taintedFiles); @@ -466,7 +466,7 @@ public function getPeer() * * @return string The filename used to save the file */ - protected function saveFile($field, $filename = null, sfValidatedFile $file = null) + protected function saveFile($field, $filename = null, ?sfValidatedFile $file = null) { if (!$this->validatorSchema[$field] instanceof sfValidatorFile) { diff --git a/lib/log/sfPropelLogger.class.php b/lib/log/sfPropelLogger.class.php index 6d7b7e2fc..277dae04e 100644 --- a/lib/log/sfPropelLogger.class.php +++ b/lib/log/sfPropelLogger.class.php @@ -26,7 +26,7 @@ class sfPropelLogger implements BasicLogger * * @param sfEventDispatcher $dispatcher */ - public function __construct(sfEventDispatcher $dispatcher = null) + public function __construct(?sfEventDispatcher $dispatcher = null) { if (null === $dispatcher) { From 77d774e797558382df3876c4f272f4eb5087e608 Mon Sep 17 00:00:00 2001 From: Paulo Magalhaes Date: Thu, 20 Nov 2025 09:42:30 +0000 Subject: [PATCH 3/3] Upgrade to symfony1-installer-plugin --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 00de9de32..de2b91320 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["symfony", "propel", "orm", "active record", "mapping", "database", "persistence"], "homepage": "http://www.propelorm.org/", "require": { - "composer/installers": "^v1.12.0", + "friendsofsymfony1/symfony1-installer-plugin": "^1.0", "propel/propel1": "~1.6" }, "extra": {