Skip to content

Commit 66971da

Browse files
committed
Update BuildTools::$building
1 parent 8e55495 commit 66971da

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Framework/Build/BuildTools.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ class BuildTools
4141
* Used for protecting developers from hurting themselves by relying on data which
4242
* might have stale caches or otherwise be unready for use during build steps
4343
*/
44-
public static bool $building = false;
44+
private static bool $building = false;
45+
46+
public static function isBuilding(): bool
47+
{
48+
return self::$building;
49+
}
4550

4651
/**
4752
* @return array<string, ReflectionClass<object>>
@@ -70,7 +75,7 @@ public static function executeBuild(?LoggerInterface $logger = null): int
7075
}
7176

7277
/* protect us against doing silly things */
73-
BuildTools::$building = true;
78+
self::$building = true;
7479

7580
if (!$logger) {
7681
$logger = new Logger('build');

0 commit comments

Comments
 (0)