Skip to content

Commit 8821983

Browse files
committed
style(build): fix style and removed outdated comment
Refs: 331
1 parent 7796e30 commit 8821983

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,21 +221,18 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
221221
// introduced in PHP 8.1).
222222
//
223223
// PHP 8.0 is the baseline - no feature flags will be introduced here.
224-
//
225-
// The PHP version cfg flags should also stack - if you compile on PHP 8.2 you
226-
// should get both the `php81` and `php82` flags.
227224
const PHP_81_API_VER: u32 = 20210902;
228225

229226
const PHP_82_API_VER: u32 = 20220829;
230227

231228
const PHP_83_API_VER: u32 = 20230831;
232-
229+
233230
const PHP_84_API_VER: u32 = 20240924;
234-
231+
235232
println!(
236233
"cargo::rustc-check-cfg=cfg(php80, php81, php82, php83, php84, php_zts, php_debug, docs)"
237234
);
238-
235+
239236
if version < PHP_81_API_VER {
240237
println!("cargo:rustc-cfg=php80");
241238
}

0 commit comments

Comments
 (0)