- Issue created by @mglaman
- Status changed to Needs review
7 months ago 5:27pm 10 May 2024 - Status changed to RTBC
7 months ago 5:28pm 10 May 2024 - 🇳🇱Netherlands bbrala Netherlands
Assuming tests don't fail this is exactly what we need to improve project_analysis.
- Status changed to Needs work
7 months ago 5:33am 11 May 2024 - 🇳🇱Netherlands bbrala Netherlands
Test did fail, guess review bot didnt find this one yet ;p
- 🇧🇪Belgium gorkagr
Hi!
Before applying the patch, i get the following error in one module:
Class Drupal\ieg_core\Form\BaseCreateNodeEventForm extends @internal class Drupal\node\NodeForm.
after applying the patch, i get the following error:
PHPStan command failed: /usr/bin/php /var/www/html/vendor/bin/phpstan analyse --memory-limit=1500M --error-format=json --configuration=/tmp/upgrade_status/deprecation_testing.neon /var/www/html/web/modules/custom/ieg_core Command output: Empty. Command error: In NeonAdapter.php line 44: Error while loading /tmp/upgrade_status/deprecation_testing.neon: Duplicated key 'drupal_root' on line 6, column 3. analyse [-c|--configuration CONFIGURATION] [-l|--level LEVEL] [--no-progress] [--debug] [-a|--autoload-file AUTOLOAD-FILE] [--error-format ERROR-FORMAT] [-b|--generate-baseline [GENERATE-BASELINE]] [--allow-empty-baseline] [--memory-limit MEMORY-LIMIT] [--xdebug] [--fix] [--watch] [--pro] [--fail-without-result-cache] [--] [...]
best
- 🇭🇺Hungary Gábor Hojtsy Hungary
Yeah I am not surprised as that is what this part of the diff would do (the drupal_root key is already added a bit above). The str_replace above this needs to be differently done, I think the drupal part removed from that, then this can add the root.
diff --git a/src/DeprecationAnalyzer.php b/src/DeprecationAnalyzer.php index 56affa470c5b0922be0cd9d3522b04c2a63abb63..41026bdd28815493d862b9f98a9a6aa710a49ef6 100644 --- a/src/DeprecationAnalyzer.php +++ b/src/DeprecationAnalyzer.php @@ -548,6 +548,11 @@ final class DeprecationAnalyzer { "\tdrupal:\n\t\tdrupal_root: '" . DRUPAL_ROOT . "'", $config ); + $config = str_replace( + "\tdrupal:", + "\tdrupal:\n\t\tdrupal_root: '" . DRUPAL_ROOT . "'", + $config + );
- Status changed to Needs review
7 months ago 12:25pm 24 May 2024 - Status changed to RTBC
7 months ago 9:14am 29 May 2024 - 🇧🇪Belgium gorkagr
All good now, update_status can analise the module and skip the @internal errors :)
-
Gábor Hojtsy →
committed 3ec2f2a1 on 4.x authored by
mglaman →
Issue #3445307 by bbrala, mglaman, gorkagr, Gábor Hojtsy: Disable...
-
Gábor Hojtsy →
committed 3ec2f2a1 on 4.x authored by
mglaman →
- Status changed to Fixed
7 months ago 11:33am 30 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.