diff --git a/src/Psalm/Provider/ClassLikeStorageProvider.php b/src/Psalm/Provider/ClassLikeStorageProvider.php index b84b84b53..a92134f8d 100644 --- a/src/Psalm/Provider/ClassLikeStorageProvider.php +++ b/src/Psalm/Provider/ClassLikeStorageProvider.php @@ -5,7 +5,11 @@ use Psalm\Storage\ClassLikeStorage; class ClassLikeStorageProvider { - /** @var array */ + /** + * Storing this statically is much faster (at least in PHP 7.2.1) + * + * @var array + */ private static $storage = []; /** diff --git a/src/Psalm/Provider/FileStorageProvider.php b/src/Psalm/Provider/FileStorageProvider.php index f185ed9e2..e53b2b707 100644 --- a/src/Psalm/Provider/FileStorageProvider.php +++ b/src/Psalm/Provider/FileStorageProvider.php @@ -7,6 +7,7 @@ class FileStorageProvider { /** * A list of data useful to analyse files + * Storing this statically is much faster (at least in PHP 7.2.1) * * @var array */