mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Add descriptive comments about storage performance
This commit is contained in:
parent
9b6b03ff9f
commit
f4a9306eee
@ -5,7 +5,11 @@ use Psalm\Storage\ClassLikeStorage;
|
||||
|
||||
class ClassLikeStorageProvider
|
||||
{
|
||||
/** @var array<string, ClassLikeStorage> */
|
||||
/**
|
||||
* Storing this statically is much faster (at least in PHP 7.2.1)
|
||||
*
|
||||
* @var array<string, ClassLikeStorage>
|
||||
*/
|
||||
private static $storage = [];
|
||||
|
||||
/**
|
||||
|
@ -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<string, FileStorage>
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user