Registry / utility / hhvm-type-assert

hhvm-type-assert

JSON →
library4.2.2phppackagistunverified

Convert untyped data to typed data.

composer require hhvm/type-assert
INSTALL
IMPORT
SIG · HHVM-TYPE-ASSERT
H
hhvm-type-assert
utilityphpv4.2.2
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.

TypeAssert
use HHVM\TypeAssert\TypeAssert;

Assert that a value is a string and return it.

use HHVM\TypeAssert\TypeAssert; $typed = TypeAssert::assertString($untypedData);
Debug
Known issues
breakingDesigned for HHVM, may not work on standard PHP.
fix
Use only in HHVM environments.
affects: >=4.0.0
Upgrade
Version history
4.2.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
hhvm-type-assert — pip install hhvm-type-assert · libregistry