psl
psl copied to clipboard
📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers
**Is your feature request related to a problem? Please describe.** It would be a `Type\numeric_string()` that asserts/coerces a `string` value down to `numeric-string`. **Describe the solution you'd like** **Describe alternatives...
**Is your feature request related to a problem? Please describe.** Quite often I find myself using `Type\instance_of` to assert values are not null, for example... ```php /** @var null|Foo $x...
Signed-off-by: azjezz
**Is your feature request related to a problem? Please describe.** The TCP component is incapable of connecting over TLS/SSL (ex. to any HTTPS site) **Describe the solution you'd like** The...
I want to type a function/method representing action which may fail, but not from pure technical perspective, rather from the business logic one. For instance, "register new user" action may...
new components: - [Async] `Awaitable` handle + async helpers based on [`revolt`](https://github.com/revoltphp) ( #244 ) - [File] a new high level abstraction for file resources. - [Network] a high level...
This PR can be used to discuss the syntax of a new Set datastructure. https://en.wikipedia.org/wiki/Set_(abstract_data_type) https://www.php.net/manual/en/class.ds-set.php Additionally, we can introduce `Vec\unique` and `Vec\unique_by` functions based on this data structure.
**Is your feature request related to a problem? Please describe.** Hi there, I want to replicate this code with PSL, but it doesn't look like we have TTY support here:...
This is a meta issue to keep track of which QA tools are being used in PSL, the end goal is to have all these tools ( and more hopefully...
I love coercing ShapeType. I can easily check if given payload is in expected format. However debugging complex ShapeType CoercionException is pain in the ass. Let's see simple (complex) example:...