Skip to content

Commit

Permalink
fix: patch views for compatibility with PHP 8.2
Browse files Browse the repository at this point in the history
Refs: ODSG-45
  • Loading branch information
orakili committed Aug 23, 2023
1 parent 4aeb8d7 commit 6b052aa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions PATCHES/core-views-php-82-compatibility.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
index 1e0740fc9d..15f8d4fc9f 100644
--- a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
+++ b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
@@ -59,6 +59,20 @@ abstract class QueryPluginBase extends PluginBase implements CacheableDependency
*/
protected $groupOperator;

+ /**
+ * WHERE groups.
+ *
+ * @var array
+ */
+ protected $where;
+
+ /**
+ * HAVING groups.
+ *
+ * @var array
+ */
+ protected $having;
+
/**
* Generate a query and a countquery from all of the information supplied.
*
3 changes: 2 additions & 1 deletion composer.patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"patches": {
"drupal/core": {
"https://www.drupal.org/project/drupal/issues/3351600": "PATCHES/core-ckeditor5-dialog-fix-3351600.patch",
"https://www.drupal.org/project/drupal/issues/3376927": "PATCHES/core-css-js-aggregation-3376927.patch"
"https://www.drupal.org/project/drupal/issues/3376927": "PATCHES/core-css-js-aggregation-3376927.patch",
"Views PHP 8.2 compatibility": "PATCHES/core-views-php-82-compatibility.patch"
},
"drupal/csp": {
"Simplify log format": "PATCHES/csp-log-format.patch"
Expand Down

0 comments on commit 6b052aa

Please sign in to comment.