Andrey Pyzhikov

Results 34 comments of Andrey Pyzhikov

@MGatner thanks for the explanations. I think I understand what you mean. But it seems to me that you have chosen the wrong way. You want to hard-code functionality that...

@MGatner Perhaps my example looks like a module. But I tried to show interaction. The class replacement tool will help in both your case and other situations. For example, replacing...

Instead of adding a mutator to set a value or extending the InetegerCast class, or adding your own class to cast types, you change the logic of the hasChange() method....

I don't understand you. From the database, you get all the data as a string. So you need to convert the new value to a string. As @kenjis showed. ```php...

@kenjis This will only work with primitive types. For example, new A !== new A will return true even if the data (string) is the same. Or (bool) 'false' ===...

All values from the database are strings. I think that in the case of 'false' vs false CastHander, it should process boolean values like pgsql. https://www.postgresql.org/docs/14/datatype-boolean.html

No problem. But it seems to me that the meaning in the declaration of the interface is lost if the class that implements it is different.

I don't know how to get out of this situation. I thought that the team would find the optimal solution.

``system/Commands/Server/rewrite.php`` 1. If we use ``mod_rewrite`` then the value of ``$_SERVER['SCRIPT_NAME']`` will always be ``/index.php`` 2. Lost dependency on ``Config\App::$indexPage``. I think it should look something like this. ```php $script...