Issue #3239686: Undefined offset 1 in DeprecationAnalyzer twig analysis
1 open thread
Merge request reports
Activity
- src/TwigDeprecationAnalyzer.php 0 → 100644
25 * 26 * @param \Drupal\Core\Extension\Extension $extension 27 * The extension to be analyzed. 28 * 29 * @return \Drupal\upgrade_status\DeprecationMessage[] 30 */ 31 public function analyze(Extension $extension): array { 32 return array_map(static function (string $deprecation) { 33 $file_matches = []; 34 $line_matches = []; 35 // @todo uncomment, this is the fix. 36 // preg_match('/([a-zA-Z0-9\_\-\/]+.html\.twig)/', $deprecation, $file_matches); 37 // preg_match('/(\d+).?$/', $deprecation, $line_matches); 38 // @todo remove, proving needs a fix. 39 preg_match('/\s([a-zA-Z0-9\_\-\/]+.html\.twig)\s/', $deprecation, $file_matches); 40 preg_match('/\s(\d+).?$/', $deprecation, $line_matches); changed this line in version 4 of the diff
added 1 commit
- 207cbd8b - Ensure two different assertions based on D8 or D9
added 1 commit
- 013c4da1 - Avoid checking messages based on key/return order
added 1 commit
- f09496ee - Split out error checks from D8/D9 to be more explicit
Please register or sign in to reply