Pavel Ivanov

Results 27 comments of Pavel Ivanov

As far as I understand, this is a feature request: https://github.com/yiisoft/yii2/issues/10408#issuecomment-165334623 – this isn't a bug. It's a request for flexibility of `hasMany()` function. IMHO, it must be transferred to...

@loveorigami I know about this lib. Thanks. But I am talking about the future of this library. There are many other good string processing libraries. But they have one problem...

BTW library https://github.com/fe3dback/str is also rarely updated (only 3 commits for 2019) and still has no documentation and has no implementation of a static wrapper. I would not choose it...

> What's the benefit in wrapping strings into objects? 1. An object has a **state**. This allows you to set the encoding only once. 2. **Fluent interface** is more convenient...

> Any benchmarks to measure overhead? @rob006 what kind of overhead do you mean? In such libraries, the main performance losses are the result of poor implementation, but not the...

Do you mean memory overhead or performance overhead?

In order not to create a large number of objects during a series of static calls, we can implement it a little differently: ```php class StringHelper { public static function...