Skip to content
Snippets Groups Projects
Commit b687be4f authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes...

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes for Unite and functional tests
parent 1327ea73
No related branches found
No related tags found
No related merge requests found
Pipeline #25967 failed
......@@ -142,7 +142,7 @@ stages:
<<: [ *with-composer-cache, *default-job-settings-lint ]
stage: 🪄 Lint
script:
- php vendor/squizlabs/php_codesniffer/bin/phpcs --standard=.phpcs.xml -vvv
- php vendor/squizlabs/php_codesniffer/bin/phpcs --standard=.phpcs.xml
'🧹 PHP Static Analysis (phpstan)':
<<: [ *with-composer-cache, *default-job-settings-lint ]
......
......@@ -4,10 +4,11 @@
<description>Default PHP CodeSniffer configuration for Drupal core.</description>
<!--Exclude folders used by common frontend tools. These folders match the file_scan_ignore_directories setting in default.settings.php-->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/web/*</exclude-pattern>
<exclude-pattern>/vender/*</exclude-pattern>
<file>.</file>
<exclude-pattern>*/bower_components/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>./web/*</exclude-pattern>
<exclude-pattern>./vender/*</exclude-pattern>
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
......
......@@ -74,6 +74,7 @@ function entityqueue_form_widget_form_node_form_submit($form, FormStateInterface
->accessCheck(TRUE)
->condition('name', $eqs_machine_name);
$result = $query->execute();
/** @var Drupal\entityqueue\Entity\EntitySubqueue $subqueues */
$subqueues = EntitySubqueue::loadMultiple($result);
foreach ($subqueues as $subqueue) {
......@@ -136,6 +137,7 @@ function entityqueue_form_widget_form_node_form_submit($form, FormStateInterface
*/
function entity_qget_allowed_subque_list($node) {
$allowed_entityqueues = [];
/** @var Drupal\entityqueue\Entity\EntitySubqueue $subqueues */
$subqueues = EntitySubqueue::loadMultiple();
if (isset($subqueues) && count($subqueues) > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment