Got this locally on MacOS (15.6.1) with php (8.5) and php-ds (2.0.0) installed with pecl:
Attempted to load class "Vector" from namespace "Ds"
On Ubuntu worked.
Tried php8.4, php8.2 - same error.
Downgraded to php-ds 1.8.0, manually downloaded 1.8.0 and compiled locally (without pecl) — works.
Not a autoload/cache issue, tested with:
if(extension_loaded('ds')){ $collection = new \Ds\Vector([1, 2, 3]); }
Got this locally on MacOS (15.6.1) with php (8.5) and php-ds (2.0.0) installed with pecl:
Attempted to load class "Vector" from namespace "Ds"On Ubuntu worked.
Tried php8.4, php8.2 - same error.
Downgraded to php-ds 1.8.0, manually downloaded 1.8.0 and compiled locally (without pecl) — works.
Not a autoload/cache issue, tested with:
if(extension_loaded('ds')){ $collection = new \Ds\Vector([1, 2, 3]); }