Skip to content

Commit

Permalink
Wrap closures by phpcs:disable
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Aug 12, 2023
1 parent e6ee3bb commit 829c3b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ public static function create(
$version = Version::create($version->toString());
}

// phpcs:disable
$pre->define('_SDL_VERSION_GTE', static fn (string $expected): bool =>
\version_compare($version->toString(), $expected, '>=')
);
$pre->define('SDL_VERSION_ATLEAST', static fn (string $a, string $b, string $c): bool =>
\version_compare($version->toString(), \sprintf('%d.%d.%d', $a, $b, $c), '>=')
);
// phpcs:enable

$pre->define('WINAPI_FAMILY_PARTITION', static fn (string $type) => 0);
$pre->define('DECLSPEC', '');
Expand Down

0 comments on commit 829c3b1

Please sign in to comment.