Skip to content

Commit

Permalink
Disable camel-case variable declaration checks for closure with unuse…
Browse files Browse the repository at this point in the history
…d parameters
  • Loading branch information
Ocramius committed Dec 3, 2022
1 parent 32bde65 commit 3ee6e37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Writer/EntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,13 @@ public function testEntryWriterEmitsNoticeDuringFeedImportWhenGooglePlayPodcastE
'messages' => [],
];

// phpcs:disable WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps
set_error_handler(static function (int $_errno, string $errstr) use ($notices): ?bool {
$notices->messages[] = $errstr;

return null;
}, E_USER_NOTICE);
// phpcs:enable WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCaps
new Writer\Entry();
restore_error_handler();

Expand Down

0 comments on commit 3ee6e37

Please sign in to comment.