David Riccitelli

Results 80 comments of David Riccitelli

I am unable to understand where that happens. The regex `(?:[abstract]*class |interface )([a-zA-Z0-9_\x7f-\xff]+)\s?(?:\n*|{| extends| implements)` doesn't seem to be the culprit:

Actually the issue appears to be there, after adding some logging to `./vendor/coenjacobs/mozart/src/Replace:15`/ClassmapReplacer.php: ``` return preg_replace_callback( '/(?:[abstract]*class |interface )([a-zA-Z0-9_\x7f-\xff]+)\s?(?:\n*|{| extends| implements)/', function ($matches) { $replace = $this->classmap_prefix . $matches[1]; error_log(...

Ok, I can see what happens: In comments there's a `class as` which is interpreted as a class name and later replaced.

I revised the regular expression as follows: `/^(?!\s*[*\/]).*(?:(?:abstract)*class |interface )([a-zA-Z0-9_\x7f-\xff]+)\s?(?:\n*|{| extends| implements)/m` This new part `^(?!\s*[*\/]).*` (along with the `m`ultiline modifier) will ensure that the line doesn't start with `*`...

This seems to work for me: `/^(?!\s*[*\/])\s*(?:(?:abstract\s+)?class |interface )([a-zA-Z0-9_\x7f-\xff]+)\s?(?:\n*|{| extends| implements)/m` I changed `(?!\s*[*\/]).*` to `(?!\s*[*\/])\s*`, i.e. only white space characters allowed until one of `abstract`, `class` or `interface` is...

Right now as a workaround I use `user: root` with docker-compose and provide a custom docker-entrypoint.sh where I reset the permissions: ``` wordpress: image: bitnami/wordpress-nginx:6 depends_on: - db user: "root"...

I think this is still relevant and I would like to keep this conversation open to explore possible solutions.

Hello, > When you are mapping a local `wp-content` folder, is it empty? No, it's not empty, which causes the script to believe that the app is already initialized, hence...

@FraPazGal do you need anything else from my side?