Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
Update ClassConfig.php
Browse files Browse the repository at this point in the history
Avoid warnings on system with no support for `touch`.
  • Loading branch information
TonyBogdanov committed Jul 18, 2019
1 parent daa6241 commit b66f23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/ClassConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ protected static function generate(
static::createDirectories($targetDir);

file_put_contents($targetPath, (string) $generator);
touch($targetPath, $time);
@touch($targetPath, $time);
clearstatcache();

// as optimization measure composer's autoloader remembers that a class does not exist on the first requested
Expand Down Expand Up @@ -361,4 +361,4 @@ public static function createInstance(string $class, $owner): AbstractConfig
$canonicalClassName = static::createClass($class);
return new $canonicalClassName($owner);
}
}
}

0 comments on commit b66f23a

Please sign in to comment.