Skip to content

Commit

Permalink
bumpetty bump
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Sep 10, 2024
1 parent 99eba73 commit c402532
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
docker run --rm -v ${PWD}:/app $(docker build -q .)
cd $(dirname $0)/../
docker run --rm -v ${PWD}:/app $(docker build -q -f .devcontainer/Dockerfile .)
3 changes: 2 additions & 1 deletion .devcontainer/run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
docker run --rm -ti -v ${PWD}:/app $(docker build -q .) /bin/bash
cd $(dirname $0)/../
docker run --rm -ti -v ${PWD}:/app $(docker build -q . -f .devcontainer/Dockerfile) /bin/bash
6 changes: 3 additions & 3 deletions generator/src/DocPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ public function __construct(private readonly string $path)
{
}

// Ignore function if it was removed before PHP 8.1
// Ignore function if it was removed before PHP 8.2
private function getIsDeprecated(string $file): bool
{
if (preg_match('/&warn\.deprecated\.function-(\d+-\d+-\d+)\.removed-(\d+-\d+-\d+)/', $file, $matches)) {
$removedVersion = $matches[2];
[$major, $minor] = explode('-', $removedVersion);
if ($major < 8 || ($major == 8 && $minor == 0)) {
if ($major < 8 || ($major == 8 && $minor < 2)) {
return true;
}
}

if (preg_match('/&warn\.removed\.function-(\d+-\d+-\d+)/', $file, $matches)) {
$removedVersion = $matches[1];
[$major, $minor] = explode('-', $removedVersion);
if ($major < 8 || ($major == 8 && $minor == 0)) {
if ($major < 8 || ($major == 8 && $minor < 2)) {
return true;
}
}
Expand Down

0 comments on commit c402532

Please sign in to comment.