Registry / utility / php-extended-polyfill-php80-stringable

php-extended-polyfill-php80-stringable

JSON →
library1.2.12phppackagistunverified

A polyfill that adds the stringable interface added in php8.0 to previous versions of php

composer require php-extended/polyfill-php80-stringable
INSTALL
IMPORT
SIG · PHP-EXTENDED-POLYF
P
php-extended-polyfill-php80-stringable
utilityphpv1.2.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Stringable
✓ use PHPExtended\Polyfill\Php80\Stringable;

Implement Stringable interface on PHP 7.x

use PHPExtended\Polyfill\Php80\Stringable; class MyClass implements Stringable { public function __toString(): string { return 'string representation'; } }
Debug
Known issues
gotchaOnly needed for PHP < 8.0
fix
Remove this package if using PHP 8.0+
affects: *
Upgrade
Version history
1.2.12latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
php-extended-polyfill-php80-stringable — pip install php-extended-polyfill-php80-stringable · libregistry