diff --git a/CHANGELOG.md b/CHANGELOG.md index ac6878d77c..133b1dd8c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [unreleased] + +### Fixed + +- Fix warning : `creation of dynamic property $table is deprecated` + ## [2.11.5] - 2026-03-24 ### Fixed diff --git a/inc/orderinjection.class.php b/inc/orderinjection.class.php index c3d0f03549..bdbc1082a4 100644 --- a/inc/orderinjection.class.php +++ b/inc/orderinjection.class.php @@ -34,6 +34,8 @@ class PluginOrderOrderInjection extends PluginOrderOrder implements PluginDatainjectionInjectionInterface { + protected $table; + public function __construct() { $this->table = getTableForItemType(get_parent_class($this)); diff --git a/inc/reception.class.php b/inc/reception.class.php index 288c71cdc5..aecd5ea511 100644 --- a/inc/reception.class.php +++ b/inc/reception.class.php @@ -1051,12 +1051,12 @@ public function updateReceptionStatus($params) $params2['POST']["delivery_number"], $params2['POST']["plugin_order_deliverystates_id"] ); - if ($ma !== false) { + if ($ma != false) { $ma->itemDone(__CLASS__, $key, MassiveAction::ACTION_OK); } } else { Session::addMessageAfterRedirect(__("Item already taken delivery", "order"), true, ERROR); - if ($ma !== false) { + if ($ma != false) { $ma->itemDone(__CLASS__, $key, MassiveAction::ACTION_KO); } } diff --git a/inc/referenceinjection.class.php b/inc/referenceinjection.class.php index 751996e13d..e9067ff9b2 100644 --- a/inc/referenceinjection.class.php +++ b/inc/referenceinjection.class.php @@ -34,6 +34,8 @@ class PluginOrderReferenceInjection extends PluginOrderReference implements PluginDatainjectionInjectionInterface { + protected $table; + public function __construct() { $this->table = getTableForItemType(get_parent_class($this));