Skip to content
Snippets Groups Projects
Commit a376a5f4 authored by catch's avatar catch
Browse files

Issue #3427999 by andypost, Ayesh, bbrala: [PHP 8.4] Fix implicitly nullable type declarations

(cherry picked from commit 06aeda30)
parent d729516c
No related branches found
No related tags found
35 merge requests!10663Issue #3495778: Update phpdoc in FileSaveHtaccessLoggingTest,!10451Issue #3472458 by watergate, smustgrave: CKEditor 5 show blocks label is not translated,!103032838547 Fix punctuation rules for inline label suffix colon with CSS only,!10150Issue #3467294 by quietone, nod_, smustgrave, catch, longwave: Change string...,!10130Resolve #3480321 "Second level menu",!9936Issue #3483087: Check the module:// prefix in the translation server path and replace it with the actual module path,!9933Issue #3394728 by ankondrat4: Undefined array key "#prefix" and deprecated function: explode() in Drupal\file\Element\ManagedFile::uploadAjaxCallback(),!9914Issue #3451136 by quietone, gapple, ghost of drupal past: Improve...,!9882Draft: Issue #3481777 In bulk_form ensure the triggering element is the bulk_form button,!9839Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9815Issue #3480025: There is no way to remove entity cache items,!9757Issue #3478869 Add "All" or overview links to parent links,!9752Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9749Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9678Issue #3465132 by catch, Spokje, nod_: Show test run time by class in run-tests.sh output,!9578Issue #3304746 by scott_euser, casey, smustgrave: BigPipe cannot handle (GET)...,!9449Issue #3344041: Allow textarea widgets to be used for text (formatted) fields,!8945🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥...,!8893Resolve #3444391 "Navigation center sm logo",!8772Issue #3445909 by seanB, smustgrave, alexpott, catch: Add static caching to...,!8723Make dblog entities,!8708Filter out disabled display extenders on save,!8691#3459116 - Update Manager Settings: Validate same email address added multiple times,!8665Issue #3449743 by catch: Try to optimize test ordering when run-tests.sh is...,!8598Draft: Issue #3458215: Migrate Toolbar button to SDC,!8572Reorder checkboxes on "Development settings" page,!8538Issue #3457009: Fixing xxception message thrown.,!8516Update file EntityReferenceItem.php,!8505Issue #3456528: _node_mass_update_batch_process fails during user cancel when revision is deleted,!8494Issue #3452511: Convert ProviderRepositoryTest to a kernel test,!8482Resolve #3456202 "Phpunit tests support",!8463Prevent re-install if site already exists,!8392Issue #3454196: Filter placeholders without arguments are not replaced when HTML corrector filter applied afterwards,!8384Issue #3446403 by edutrul, jnicola, mradcliffe: [name]: This field is missing for example recipe,!8304Issue #2990766 by camilledavis, Gauravvvv, mgifford: Location of "Skip to...
Pipeline #188013 passed with warnings
Pipeline: drupal

#188031

    Pipeline: drupal

    #188023

      Pipeline: drupal

      #188019

        Showing
        with 26 additions and 26 deletions
        ......@@ -15,7 +15,7 @@ class AccessArgumentsResolverFactory implements AccessArgumentsResolverFactoryIn
        /**
        * {@inheritdoc}
        */
        public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL) {
        public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL) {
        $route = $route_match->getRouteObject();
        // Defaults for the parameters defined on the route object need to be added
        ......
        ......@@ -24,6 +24,6 @@ interface AccessArgumentsResolverFactoryInterface {
        * @return \Drupal\Component\Utility\ArgumentsResolverInterface
        * The parametrized arguments resolver instance.
        */
        public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL);
        public function getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL);
        }
        ......@@ -79,7 +79,7 @@ public function __construct(RouteProviderInterface $route_provider, ParamConvert
        /**
        * {@inheritdoc}
        */
        public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        try {
        $route = $this->routeProvider->getRouteByName($route_name);
        ......@@ -108,7 +108,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte
        /**
        * {@inheritdoc}
        */
        public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $route_match = RouteMatch::createFromRequest($request);
        return $this->check($route_match, $account, $request, $return_as_object);
        }
        ......@@ -116,7 +116,7 @@ public function checkRequest(Request $request, AccountInterface $account = NULL,
        /**
        * {@inheritdoc}
        */
        public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE) {
        public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE) {
        if (!isset($account)) {
        $account = $this->currentUser;
        }
        ......
        ......@@ -33,7 +33,7 @@ interface AccessManagerInterface {
        * returned, i.e. TRUE means access is explicitly allowed, FALSE means
        * access is either explicitly forbidden or "no opinion".
        */
        public function checkNamedRoute($route_name, array $parameters = [], AccountInterface $account = NULL, $return_as_object = FALSE);
        public function checkNamedRoute($route_name, array $parameters = [], ?AccountInterface $account = NULL, $return_as_object = FALSE);
        /**
        * Execute access checks against the incoming request.
        ......@@ -53,7 +53,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte
        * returned, i.e. TRUE means access is explicitly allowed, FALSE means
        * access is either explicitly forbidden or "no opinion".
        */
        public function checkRequest(Request $request, AccountInterface $account = NULL, $return_as_object = FALSE);
        public function checkRequest(Request $request, ?AccountInterface $account = NULL, $return_as_object = FALSE);
        /**
        * Checks a route against applicable access check services.
        ......@@ -78,6 +78,6 @@ public function checkRequest(Request $request, AccountInterface $account = NULL,
        * returned, i.e. TRUE means access is explicitly allowed, FALSE means
        * access is either explicitly forbidden or "no opinion".
        */
        public function check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, $return_as_object = FALSE);
        public function check(RouteMatchInterface $route_match, ?AccountInterface $account = NULL, ?Request $request = NULL, $return_as_object = FALSE);
        }
        ......@@ -29,6 +29,6 @@ interface AccessibleInterface {
        * returned, i.e. TRUE means access is explicitly allowed, FALSE means
        * access is either explicitly forbidden or "no opinion".
        */
        public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE);
        public function access($operation, ?AccountInterface $account = NULL, $return_as_object = FALSE);
        }
        ......@@ -51,7 +51,7 @@ public function __construct(
        * @return \Drupal\Core\Access\AccessResultInterface
        * The access result.
        */
        public function access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL) {
        public function access(Route $route, RouteMatchInterface $route_match, AccountInterface $account, ?Request $request = NULL) {
        try {
        $callable = $this->callableResolver->getCallableFromDefinition($route->getRequirement('_custom_access'));
        }
        ......
        ......@@ -33,7 +33,7 @@ public function __construct(CsrfTokenGenerator $csrf_token) {
        /**
        * {@inheritdoc}
        */
        public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) {
        public function processOutbound($route_name, Route $route, array &$parameters, ?BubbleableMetadata $bubbleable_metadata = NULL) {
        if ($route->hasRequirement('_csrf_token')) {
        $path = ltrim($route->getPath(), '/');
        // Replace the path parameters with values from the parameters array.
        ......
        ......@@ -56,6 +56,6 @@ public function executeMultiple(array $objects);
        * returned, i.e. TRUE means access is explicitly allowed, FALSE means
        * access is either explicitly forbidden or "no opinion".
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE);
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE);
        }
        ......@@ -94,7 +94,7 @@ public function execute($object = NULL) {
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        return $object->access('delete', $account, $return_as_object);
        }
        ......
        ......@@ -209,7 +209,7 @@ public function submitConfigurationForm(array &$form, FormStateInterface $form_s
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $result = AccessResult::allowed();
        return $return_as_object ? $result : $result->isAllowed();
        }
        ......
        ......@@ -133,7 +133,7 @@ public function submitConfigurationForm(array &$form, FormStateInterface $form_s
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $access = AccessResult::allowed();
        return $return_as_object ? $access : $access->isAllowed();
        }
        ......
        ......@@ -127,7 +127,7 @@ public function submitConfigurationForm(array &$form, FormStateInterface $form_s
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $result = AccessResult::allowed();
        return $return_as_object ? $result : $result->isAllowed();
        }
        ......
        ......@@ -27,7 +27,7 @@ public function execute($entity = NULL) {
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $key = $object->getEntityType()->getKey('published');
        /** @var \Drupal\Core\Entity\EntityInterface $object */
        ......
        ......@@ -69,7 +69,7 @@ public function execute($entity = NULL) {
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        // It's not necessary to check the changed field access here, because
        // Drupal\Core\Field\ChangedFieldItemList would anyway return 'not allowed'.
        // Also changing the changed field value is only a workaround to trigger an
        ......
        ......@@ -27,7 +27,7 @@ public function execute($entity = NULL) {
        /**
        * {@inheritdoc}
        */
        public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
        public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
        $key = $object->getEntityType()->getKey('published');
        /** @var \Drupal\Core\Entity\EntityInterface $object */
        ......
        ......@@ -55,7 +55,7 @@ class InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterf
        * @param array $settings
        * An array of JavaScript settings to be passed to any attached behaviors.
        */
        public function __construct($selector, $content, array $settings = NULL) {
        public function __construct($selector, $content, ?array $settings = NULL) {
        $this->selector = $selector;
        $this->content = $content;
        $this->settings = $settings;
        ......
        ......@@ -121,7 +121,7 @@ protected function getLibrariesToLoad(AttachedAssetsInterface $assets) {
        /**
        * {@inheritdoc}
        */
        public function getCssAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) {
        public function getCssAssets(AttachedAssetsInterface $assets, $optimize, ?LanguageInterface $language = NULL) {
        if (!$assets->getLibraries()) {
        return [];
        }
        ......@@ -225,7 +225,7 @@ protected function getJsSettingsAssets(AttachedAssetsInterface $assets) {
        /**
        * {@inheritdoc}
        */
        public function getJsAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL) {
        public function getJsAssets(AttachedAssetsInterface $assets, $optimize, ?LanguageInterface $language = NULL) {
        if (!$assets->getLibraries() && !$assets->getSettings()) {
        return [[], []];
        }
        ......
        ......@@ -51,7 +51,7 @@ interface AssetResolverInterface {
        * @return array
        * A (possibly optimized) collection of CSS assets.
        */
        public function getCssAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL);
        public function getCssAssets(AttachedAssetsInterface $assets, $optimize, ?LanguageInterface $language = NULL);
        /**
        * Returns the JavaScript assets for the current response's libraries.
        ......@@ -83,6 +83,6 @@ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, Languag
        * - at index one: the (possibly optimized) collection of JavaScript assets
        * for the bottom of the page
        */
        public function getJsAssets(AttachedAssetsInterface $assets, $optimize, LanguageInterface $language = NULL);
        public function getJsAssets(AttachedAssetsInterface $assets, $optimize, ?LanguageInterface $language = NULL);
        }
        ......@@ -71,7 +71,7 @@ public function processDefinition(&$definition, $plugin_id) {
        /**
        * {@inheritdoc}
        */
        public function getSortedDefinitions(array $definitions = NULL) {
        public function getSortedDefinitions(?array $definitions = NULL) {
        // Sort the plugins first by category, then by admin label.
        $definitions = $this->traitGetSortedDefinitions($definitions, 'admin_label');
        // Do not display the 'broken' plugin in the UI.
        ......
        ......@@ -54,7 +54,7 @@ public function setContainer(ContainerInterface $container): void {
        * - 'cache.backend.apcu' (if the PHP process has APCu enabled)
        * - NULL (if the PHP process doesn't have APCu enabled)
        */
        public function __construct(Settings $settings = NULL, $consistent_service_name = NULL, $fast_service_name = NULL) {
        public function __construct(?Settings $settings = NULL, $consistent_service_name = NULL, $fast_service_name = NULL) {
        // Default the consistent backend to the site's default backend.
        if (!isset($consistent_service_name)) {
        $cache_settings = isset($settings) ? $settings->get('cache') : [];
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment