You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static variables are persisted during script execution, therefore it is not possible to validate several emails using different configuration.
The static $disposableEmailListProviders; in DisposableEmailValidator.php and static $freeEmailListProviders; in FreeEmailValidator.php are set on first class initialization and it is not possible to change them. These variables should be replaces with properties on the class e.g. private ?array $freeEmailListProviders = null; remove_static_variables.patch.txt
Use case: there are two email fields one for personal and another for work email. Personal email has one set of free email providers while work email has different set.
Static variables are persisted during script execution, therefore it is not possible to validate several emails using different configuration.
The
static $disposableEmailListProviders;
inDisposableEmailValidator.php
andstatic $freeEmailListProviders;
inFreeEmailValidator.php
are set on first class initialization and it is not possible to change them. These variables should be replaces with properties on the class e.g.private ?array $freeEmailListProviders = null;
remove_static_variables.patch.txt
Use case: there are two email fields one for personal and another for work email. Personal email has one set of free email providers while work email has different set.
The text was updated successfully, but these errors were encountered: