Giter Site home page Giter Site logo

joomla_com_upgrader's People

Contributors

dependabot[bot] avatar nikosdion avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

joomla_com_upgrader's Issues

Suggestion and Error on JoomlaNamespaceHandlingTrait

Hi Nicholas,
thank you very much for this great contribution!!!

I am testing it and I have one suggestion for the composer.json update and one issue I found in a couple of components.

For the composer.json suggestion, after adding your settings and executing composer update --dev, composer complaint about minimum stability, so I had to add the following line to my settings:
"minimum-stability": "dev",

After that, everything was correctly installed, and I could execute the PHP command (after creating the rector.php file).

When executing, I got a couple of PHP exceptions:

PHP Fatal error: Uncaught Error: Call to undefined method Rector\Naming\Rector\FileWithoutNamespace\JoomlaLegacyMVCToJ4Rector::getFile() in ./vendor/nikosdion/joomla_com_upgrader/rules/Naming/Rector/FileWithoutNamespace/JoomlaNamespaceHandlingTrait.php:69

And also:

./vendor/nikosdion/joomla_com_upgrader/rules/Naming/Rector/FileWithoutNamespace/JoomlaNamespaceHandlingTrait.php(153): Rector\Naming\Rector\FileWithoutNamespace\JoomlaLegacyMVCToJ4Rector->getApplicationSide()

Not sure whether these have to do with my configuration or they are generic issues.

Thank you very much again!! This is a great tool that will help lots of developers to update their extensions.

Class 'RectorPrefix202208\Webmozart\Assert\Assert' not found

Hi Nicholas

I've tried using com_upgrader on both windows and linux and get the same error, i've also tried both php7.4 and 8.1

I run composer update --dev and it goes through
then
/opt/remi/php74/root/bin/php ./vendor/bin/rector --dry-run --clear-cache
which results in
PHP Fatal error: Uncaught Error: Class 'RectorPrefix202208\Webmozart\Assert\Assert' not found in /home/lscouk/public_html/marktest/vendor/nikosdion/joomla_com_upgrader/rules/Naming/Rector/FileWithoutNamespace/JoomlaLegacyMVCToJ4Rector.php:102

I tried updating composer.json to add
"webmozart/assert" : "*",
in require-dev which does download it to vendor but still get the same error.

I'm probably doing something wrong in the configuration but if not thought I'd raise an issue just in case.
Thanks
Mark

PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in phar:///opt/lampp/htdocs/rector/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/polyfill-mbstring/Mbstring.php:440

Hi, testing now, get problems in Symfony library:

212/1075 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░] 19%PHP Fatal error: Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in phar:///opt/lampp/htdocs/rector/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/vendor/symfony/polyfill-mbstring/Mbstring.php:440

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.