Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 14, 2025

Per #7271 (comment) , this is to skip init not empty array regression to avoid invalid change:

Failed on fixture file "skip_init_not_empty_array.php.inc"
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@
 {
      public function some(SomeObject $someObject): array
      {
-        $message = [
-           'type' => 'type',
-            'id' => (string) $someObject->getId(),
-        ];
-        $message['link'] = $this->getSome($someObject);
-
-       return $message;
+         return ['link' => $this->getSome($someObject)];
      }

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @TomasVotruba

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik enabled auto-merge (squash) September 14, 2025 23:49
@samsonasik samsonasik merged commit 8d84db7 into main Sep 14, 2025
49 checks passed
@samsonasik samsonasik deleted the skip-init-not-empty branch September 14, 2025 23:50
@TomasVotruba
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants