Skip to content

Commit bfded35

Browse files
authored
Merge pull request #1 from php-openapi-tools/use-explicit-load-or-not-to-load-file-flag
Use explicit load or not to load file flag
2 parents 9f5041a + 8640433 commit bfded35

File tree

2 files changed

+60
-60
lines changed

2 files changed

+60
-60
lines changed

composer.lock

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function generate(Configuration $configuration, string $configurat
8787
file_put_contents($fileName, $fileContents);
8888
$state->generatedFiles->upsert($fileName, $fileContentsHash);
8989

90-
if (is_string($file->contents)) {
90+
if ($file->loadOnWrite === \OpenAPITools\Utils\File::DO_NOT_LOAD_ON_WRITE) {
9191
continue;
9292
}
9393

0 commit comments

Comments
 (0)