Skip to content

Commit

Permalink
Fix opcache preloading warning
Browse files Browse the repository at this point in the history
Fixes #721
  • Loading branch information
ostrolucky committed Feb 20, 2024
1 parent 9be888e commit 08c1166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Factory/PhpredisClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
use function var_export;
use function version_compare;

// Help opcache.preload discover always-needed symbols
class_exists(RedisDsn::class);

Check failure on line 41 in src/Factory/PhpredisClientFactory.php

View workflow job for this annotation

GitHub Actions / Coding Standards

Function class_exists() should not be referenced via a fallback global name, but via a use statement.

/** @internal */
class PhpredisClientFactory
{
Expand Down

0 comments on commit 08c1166

Please sign in to comment.