Skip to content
Snippets Groups Projects
Verified Commit 1ff97479 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3426548 by Kingdutch, andypost, longwave, catch, mstrelan, alexpott:...

Issue #3426548 by Kingdutch, andypost, longwave, catch, mstrelan, alexpott: Convert the PHPStan baseline from NEON to PHP
parent fb49143f
No related branches found
No related tags found
28 merge requests!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!9470[10.3.x-only-DO-NOT-MERGE]: #3331771 Fix file_get_contents(): Passing null to parameter,!8540Issue #3457061: Bootstrap Modal dialog Not closing after 10.3.0 Update,!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8373Issue #3427374 by danflanagan8, Vighneshh: taxonomy_tid ViewsArgumentDefault...,!7526Expose roles in response,!7352Draft: Resolve #3203489 "Set filename as",!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3133core/modules/system/css/components/hidden.module.css,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2794Issue #3100732: Allow specifying `meta` data on JSON:API objects,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2062Issue #3246454: Add weekly granularity to views date sort,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #117554 canceled
Pipeline: drupal

#117555

    ......@@ -42,6 +42,9 @@
    *.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
    *.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
    # PHPStan's baseline uses tabs instead of spaces.
    core/.phpstan-baseline.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tabwidth=2 diff=php linguist-language=php
    # Define binary file attributes.
    # - Do not treat them as text.
    # - Include binary diff in patches instead of "binary files differ."
    ......
    ......@@ -328,7 +328,7 @@ default:
    php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress || true
    # Generate a new baseline.
    echo "Generating an PHPStan baseline file (available as job artifact)."
    php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress --generate-baseline=./core/phpstan-baseline.neon || true
    php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --no-progress --generate-baseline=./core/.phpstan-baseline.php || true
    exit $EXIT_CODE
    fi
    ......@@ -339,7 +339,7 @@ default:
    # Only store the baseline if the job fails.
    when: on_failure
    paths:
    - core/phpstan-baseline.neon
    - core/.phpstan-baseline.php
    '🧹 PHP Coding standards (PHPCS)':
    <<: [ *with-composer, *default-job-settings-lint ]
    ......
    This diff is collapsed.
    ......@@ -8,6 +8,8 @@
    <exclude-pattern>*/node_modules/*</exclude-pattern>
    <!--Exclude third party code.-->
    <exclude-pattern>./assets/vendor/*</exclude-pattern>
    <!--Exclude the PHPStan baseline from coding standards.-->
    <exclude-pattern>./core/.phpstan-baseline.php</exclude-pattern>
    <!-- Exclude third-party code maintained within core that does not follow our standards. -->
    <!-- @todo This rule may be removed when https://www.drupal.org/node/1848264 is resolved. -->
    <exclude-pattern>./core/lib/Drupal/Component/Diff/</exclude-pattern>
    ......
    This diff is collapsed.
    # Configuration file for PHPStan static code checking, see https://phpstan.org .
    # PHPStan is triggered on Drupal CI in commit-code-check.sh.
    includes:
    - phpstan-baseline.neon
    - .phpstan-baseline.php
    - phar://phpstan.phar/conf/bleedingEdge.neon
    parameters:
    ......
    ......@@ -112,7 +112,7 @@
    # This variable will be set to one when the file core/phpcs.xml.dist is changed.
    PHPCS_XML_DIST_FILE_CHANGED=0
    # This variable will be set to one when the files core/phpstan-baseline.neon or
    # This variable will be set to one when the files core/.phpstan-baseline.php or
    # core/phpstan.neon.dist are changed.
    PHPSTAN_DIST_FILE_CHANGED=0
    ......@@ -153,7 +153,7 @@
    PHPCS_XML_DIST_FILE_CHANGED=1;
    fi;
    if [[ $FILE == "core/phpstan-baseline.neon" || $FILE == "core/phpstan.neon.dist" ]]; then
    if [[ $FILE == "core/.phpstan-baseline.php" || $FILE == "core/phpstan.neon.dist" ]]; then
    PHPSTAN_DIST_FILE_CHANGED=1;
    fi;
    ......
    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