diff --git a/docroot/sites/all/modules/contrib/views/handlers/views_handler_argument.inc b/docroot/sites/all/modules/contrib/views/handlers/views_handler_argument.inc index 9f9adab6..c95feaa2 100644 --- a/docroot/sites/all/modules/contrib/views/handlers/views_handler_argument.inc +++ b/docroot/sites/all/modules/contrib/views/handlers/views_handler_argument.inc @@ -33,6 +33,7 @@ * * @ingroup views_argument_handlers */ +#[\AllowDynamicProperties] class views_handler_argument extends views_handler { /** diff --git a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field.inc b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field.inc index 728a646c..98deb987 100644 --- a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field.inc +++ b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field.inc @@ -132,7 +132,9 @@ class views_handler_field extends views_handler { * An array of fields. The key is an identifier used to later find the field * alias used. The value is either a string in which case it's assumed to be * a field on this handler's table; or it's an array in the form of - * @code array('table' => $tablename, 'field' => $fieldname) @endcode + * @code + * array('table' => $tablename, 'field' => $fieldname) + * @endcode */ public function add_additional_fields($fields = NULL) { if (!isset($fields)) { @@ -1191,7 +1193,7 @@ If you would like to have the characters \'[\' and \']\' please use the html ent $value = $this->render_altered($alter, $tokens); } - if (!empty($this->options['alter']['trim_whitespace'])) { + if (!is_null($value) && !empty($this->options['alter']['trim_whitespace'])) { $value = trim($value); } diff --git a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_date.inc b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_date.inc index 68cc142d..f23c2e57 100644 --- a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_date.inc +++ b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_date.inc @@ -142,8 +142,8 @@ class views_handler_field_date extends views_handler_field { public function render($values) { $value = $this->get_value($values); - if (!is_numeric($value)) { - // If the value isn't numeric, assume it's an SQL DATETIME. + // If the value isn't numeric, assume it's an SQL DATETIME. + if (!empty($value) && !is_numeric($value)) { $value = strtotime($value); } diff --git a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_entity.inc b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_entity.inc index 135d4ad4..ce8d97ba 100644 --- a/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_entity.inc +++ b/docroot/sites/all/modules/contrib/views/handlers/views_handler_field_entity.inc @@ -12,7 +12,9 @@ * used by the query backend have an 'entity type' specified. In order to * make fields based upon this handler automatically available to all compatible * query backends, the views field can be defined in the table. - * @code views_entity_{ENTITY_TYPE} @endcode. + * @code + * views_entity_{ENTITY_TYPE} + * @endcode * * @ingroup views_field_handlers */ diff --git a/docroot/sites/all/modules/contrib/views/handlers/views_handler_filter_in_operator.inc b/docroot/sites/all/modules/contrib/views/handlers/views_handler_filter_in_operator.inc index c20e8f00..b7a450a9 100644 --- a/docroot/sites/all/modules/contrib/views/handlers/views_handler_filter_in_operator.inc +++ b/docroot/sites/all/modules/contrib/views/handlers/views_handler_filter_in_operator.inc @@ -15,6 +15,7 @@ * * @ingroup views_filter_handlers */ +#[\AllowDynamicProperties] class views_handler_filter_in_operator extends views_handler_filter { /** diff --git a/docroot/sites/all/modules/contrib/views/includes/base.inc b/docroot/sites/all/modules/contrib/views/includes/base.inc index b2c8622a..b2a39c3c 100644 --- a/docroot/sites/all/modules/contrib/views/includes/base.inc +++ b/docroot/sites/all/modules/contrib/views/includes/base.inc @@ -8,6 +8,7 @@ /** * Provides the basic object definitions used by plugins and handlers. */ +#[\AllowDynamicProperties] class views_object { /** @@ -46,6 +47,7 @@ class views_object { * - 'unpack_translatable' => (optional) callback for special handling for * translating data within the option, if necessary. * ), + * @endcode * * @return array * Returns the options of this handler/plugin. diff --git a/docroot/sites/all/modules/contrib/views/includes/handlers.inc b/docroot/sites/all/modules/contrib/views/includes/handlers.inc index a27d6064..99eb5937 100644 --- a/docroot/sites/all/modules/contrib/views/includes/handlers.inc +++ b/docroot/sites/all/modules/contrib/views/includes/handlers.inc @@ -151,6 +151,7 @@ function views_get_table_join($table, $base_table) { * control is provided. * - access arguments: An array of arguments for the access callback. */ +#[\AllowDynamicProperties] class views_handler extends views_object { /** @@ -328,7 +329,7 @@ class views_handler extends views_object { * Returns the safe value. */ public function sanitize_value($value, $type = NULL) { - if (strlen($value) > 0) { + if (!is_null($value) && strlen($value) > 0) { switch ($type) { case 'xss': $value = filter_xss($value); @@ -809,6 +810,7 @@ class views_handler extends views_object { * - numeric: If true, treat this field as numeric, using %d instead of %s in * queries. */ +#[\AllowDynamicProperties] class views_many_to_one_helper { /** @@ -1580,6 +1582,7 @@ function views_date_sql_extract($extract_type, $field, $field_type = 'int', $set * - extra type: How all the extras will be combined. Either AND or OR. * Defaults to AND. */ +#[\AllowDynamicProperties] class views_join { public $table = NULL; public $left_table = NULL; @@ -1745,6 +1748,7 @@ class views_join { * Same as views_join class above, except: * - left_query: The subquery to use in the left side of the join clause. */ +#[\AllowDynamicProperties] class views_join_subquery extends views_join { /** diff --git a/docroot/sites/all/modules/contrib/views/includes/view.inc b/docroot/sites/all/modules/contrib/views/includes/view.inc index 9986ffa9..976805e9 100644 --- a/docroot/sites/all/modules/contrib/views/includes/view.inc +++ b/docroot/sites/all/modules/contrib/views/includes/view.inc @@ -14,6 +14,7 @@ * Also includes the member functions to build the view query, execute the * query and render the output. */ +#[\AllowDynamicProperties] class view extends views_db_object { /** @@ -2220,6 +2221,7 @@ class view extends views_db_object { /** * Base class for views' database objects. */ +#[\AllowDynamicProperties] class views_db_object { public $db_table; @@ -2626,6 +2628,7 @@ class views_db_object { * This is just the database storage mechanism, and isn't terribly important * to the behavior of the display at all. */ +#[\AllowDynamicProperties] class views_display extends views_db_object { /** diff --git a/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_group.inc b/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_group.inc index 6efcd55f..01867122 100644 --- a/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_group.inc +++ b/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_group.inc @@ -10,6 +10,7 @@ * * @ingroup views_argument_handlers */ +#[\AllowDynamicProperties] class views_handler_argument_locale_group extends views_handler_argument { /** diff --git a/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_language.inc b/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_language.inc index 0c3f61eb..572f122e 100644 --- a/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_language.inc +++ b/docroot/sites/all/modules/contrib/views/modules/locale/views_handler_argument_locale_language.inc @@ -10,6 +10,7 @@ * * @ingroup views_argument_handlers */ +#[\AllowDynamicProperties] class views_handler_argument_locale_language extends views_handler_argument { /** diff --git a/docroot/sites/all/modules/contrib/views/modules/translation/views_handler_filter_node_tnid.inc b/docroot/sites/all/modules/contrib/views/modules/translation/views_handler_filter_node_tnid.inc index 5bff0480..2c94b216 100644 --- a/docroot/sites/all/modules/contrib/views/modules/translation/views_handler_filter_node_tnid.inc +++ b/docroot/sites/all/modules/contrib/views/modules/translation/views_handler_filter_node_tnid.inc @@ -10,6 +10,7 @@ * * @ingroup views_filter_handlers */ +#[\AllowDynamicProperties] class views_handler_filter_node_tnid extends views_handler_filter { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/export_ui/views_ui.class.php b/docroot/sites/all/modules/contrib/views/plugins/export_ui/views_ui.class.php index 81cbdac3..25cc8205 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/export_ui/views_ui.class.php +++ b/docroot/sites/all/modules/contrib/views/plugins/export_ui/views_ui.class.php @@ -10,6 +10,7 @@ /** * CTools Export UI class handler for Views UI. */ +#[\AllowDynamicProperties] class views_ui extends ctools_export_ui { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_access_none.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_access_none.inc index af2a7c99..463c0329 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_access_none.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_access_none.inc @@ -10,6 +10,7 @@ * * @ingroup views_access_plugins */ +#[\AllowDynamicProperties] class views_plugin_access_none extends views_plugin_access { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_attachment.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_attachment.inc index 57bd0906..8f525abb 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_attachment.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_attachment.inc @@ -14,6 +14,7 @@ * * @ingroup views_display_plugins */ +#[\AllowDynamicProperties] class views_plugin_display_attachment extends views_plugin_display { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_block.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_block.inc index 9fc01119..93fe86fb 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_block.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_block.inc @@ -10,6 +10,7 @@ * * @ingroup views_display_plugins */ +#[\AllowDynamicProperties] class views_plugin_display_block extends views_plugin_display { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_default.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_default.inc index 9531013e..cc7d3bc5 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_default.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_default.inc @@ -10,6 +10,7 @@ * * @ingroup views_display_plugins */ +#[\AllowDynamicProperties] class views_plugin_display_default extends views_plugin_display { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_feed.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_feed.inc index a3c2333c..682bb37a 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_feed.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_feed.inc @@ -12,6 +12,7 @@ * * @ingroup views_display_plugins */ +#[\AllowDynamicProperties] class views_plugin_display_feed extends views_plugin_display_page { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_page.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_page.inc index d743836d..3f44f523 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_page.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_display_page.inc @@ -10,6 +10,7 @@ * * @ingroup views_display_plugins */ +#[\AllowDynamicProperties] class views_plugin_display_page extends views_plugin_display { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_localization_none.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_localization_none.inc index 4a1a7d9b..a5c1c2a2 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_localization_none.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_localization_none.inc @@ -10,6 +10,7 @@ * * @ingroup views_localization_plugins */ +#[\AllowDynamicProperties] class views_plugin_localization_none extends views_plugin_localization { /** diff --git a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_style.inc b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_style.inc index ed5d3c02..6d404736 100644 --- a/docroot/sites/all/modules/contrib/views/plugins/views_plugin_style.inc +++ b/docroot/sites/all/modules/contrib/views/plugins/views_plugin_style.inc @@ -481,7 +481,7 @@ class views_plugin_style extends views_plugin { if ($rendered) { $grouping = $group_content; if ($rendered_strip) { - $group_content = $grouping = strip_tags(htmlspecialchars_decode($group_content)); + $group_content = $grouping = strip_tags(htmlspecialchars_decode((string) $group_content)); } } else { diff --git a/docroot/sites/all/modules/contrib/views/tests/test_plugins/views_test_plugin_access_test_dynamic.inc b/docroot/sites/all/modules/contrib/views/tests/test_plugins/views_test_plugin_access_test_dynamic.inc index 39f7600f..1ad54d6c 100644 --- a/docroot/sites/all/modules/contrib/views/tests/test_plugins/views_test_plugin_access_test_dynamic.inc +++ b/docroot/sites/all/modules/contrib/views/tests/test_plugins/views_test_plugin_access_test_dynamic.inc @@ -8,6 +8,7 @@ /** * Tests a dynamic access plugin. */ +#[\AllowDynamicProperties] class views_test_plugin_access_test_dynamic extends views_plugin_access { /** diff --git a/docroot/sites/all/modules/contrib/views/tests/views_access.test b/docroot/sites/all/modules/contrib/views/tests/views_access.test index d05436be..66222908 100644 --- a/docroot/sites/all/modules/contrib/views/tests/views_access.test +++ b/docroot/sites/all/modules/contrib/views/tests/views_access.test @@ -8,6 +8,7 @@ /** * Basic test for pluggable access. */ +#[\AllowDynamicProperties] class ViewsAccessTest extends ViewsSqlTest { public static function getInfo() { return array( diff --git a/docroot/sites/all/modules/contrib/views/tests/views_query.test b/docroot/sites/all/modules/contrib/views/tests/views_query.test index b2f00291..dffa7237 100644 --- a/docroot/sites/all/modules/contrib/views/tests/views_query.test +++ b/docroot/sites/all/modules/contrib/views/tests/views_query.test @@ -8,6 +8,7 @@ /** * */ +#[\AllowDynamicProperties] abstract class ViewsTestCase extends DrupalWebTestCase { /** diff --git a/docroot/sites/all/modules/contrib/views/tests/views_test.info b/docroot/sites/all/modules/contrib/views/tests/views_test.info index 175c1abf..04160f44 100644 --- a/docroot/sites/all/modules/contrib/views/tests/views_test.info +++ b/docroot/sites/all/modules/contrib/views/tests/views_test.info @@ -5,8 +5,8 @@ core = 7.x dependencies[] = views hidden = TRUE -; Information added by Drupal.org packaging script on 2022-09-26 -version = "7.x-3.27" +; Information added by Drupal.org packaging script on 2022-12-19 +version = "7.x-3.28" core = "7.x" project = "views" -datestamp = "1664210561" +datestamp = "1671451989" diff --git a/docroot/sites/all/modules/contrib/views/theme/theme.inc b/docroot/sites/all/modules/contrib/views/theme/theme.inc index d5757c1c..cd4a7ce9 100644 --- a/docroot/sites/all/modules/contrib/views/theme/theme.inc +++ b/docroot/sites/all/modules/contrib/views/theme/theme.inc @@ -344,9 +344,10 @@ function template_preprocess_views_view_grouping(&$vars) { /** * Display a single views field. * - * Interesting bits of info: - * $field->field_alias says what the raw value in $row will be. Reach it like - * this: @code { $row->{$field->field_alias} @endcode. + * $field->field_alias says what the raw value in $row will be, like this: + * @code + * $row->{$field->field_alias} + * @endcode */ function theme_views_view_field($vars) { $view = $vars['view']; diff --git a/docroot/sites/all/modules/contrib/views/views.info b/docroot/sites/all/modules/contrib/views/views.info index 82f006dd..b6484bb8 100644 --- a/docroot/sites/all/modules/contrib/views/views.info +++ b/docroot/sites/all/modules/contrib/views/views.info @@ -330,8 +330,8 @@ files[] = tests/views_clone.test files[] = tests/views_view.test files[] = tests/views_ui.test -; Information added by Drupal.org packaging script on 2022-09-26 -version = "7.x-3.27" +; Information added by Drupal.org packaging script on 2022-12-19 +version = "7.x-3.28" core = "7.x" project = "views" -datestamp = "1664210561" +datestamp = "1671451989" diff --git a/docroot/sites/all/modules/contrib/views/views_ui.info b/docroot/sites/all/modules/contrib/views/views_ui.info index 6b7711d2..5a68930b 100644 --- a/docroot/sites/all/modules/contrib/views/views_ui.info +++ b/docroot/sites/all/modules/contrib/views/views_ui.info @@ -8,8 +8,8 @@ dependencies[] = views files[] = views_ui.module files[] = plugins/views_wizard/views_ui_base_views_wizard.class.php -; Information added by Drupal.org packaging script on 2022-09-26 -version = "7.x-3.27" +; Information added by Drupal.org packaging script on 2022-12-19 +version = "7.x-3.28" core = "7.x" project = "views" -datestamp = "1664210561" +datestamp = "1671451989"