From d3b7f5015a4229e0bd4f67988def8971636fd1b0 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Fri, 23 Aug 2024 14:23:10 -0600 Subject: [PATCH] Move array definition to the function that uses it --- scripts/update-ebook-database | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/update-ebook-database b/scripts/update-ebook-database index 7e617836..aac79606 100755 --- a/scripts/update-ebook-database +++ b/scripts/update-ebook-database @@ -4,9 +4,8 @@ require_once('/standardebooks.org/web/lib/Core.php'); use function Safe\getopt; -$ignoredProperites = ['Created', 'Updated']; // Ebooks from the filesystem don't have these DB properties set. - function findObjectDifferences($fs, $db): array{ + static $ignoredProperites = ['Created', 'Updated']; // Ebooks from the filesystem don't have these DB properties set. $diffs = []; $fsReflection = new ReflectionClass($fs); $dbReflection = new ReflectionClass($db);