The Travis-CI process for PHPMailer is currently having some issues. I had to switch the php-cs-fixer stage from PHP 5.5 to 5.6 because Travis no longer seems to support 5.5, and this has led to a can of worms.
php-cs-fixer is now suggesting some rather strange options by default - in particular yoda_style, and native_function_invocation options - and it would be helpful if someone could figure out how to get rid of those.
A second, but related, problem is that the composer require-dev config currently results in a hang on install or update. It seems that current versions of php-cs-fixer and phpdocumentor have some kind of conflict, resulting in an infinite loop in composer. This means that I can't even test fixes for the first problem!
So, if anyone has some time and ideas for how to fix the composer and php-cs configs, it would be very helpful.
1 month and no help?! Great support from devs... this project is probably dead, I wonder why... maybe because it uses syntax like:
use PHPMailer\PHPMailer\PHPMailer;
How dumber can this be?
Perhaps you shouldn't go around insulting people just because you don't understand namespacing? You also failed to read the readme which explains exactly why that class ends up with that FQCN. You also failed to notice that I am the maintainer, and also the one that created this issue.
Either submit a PR, or go away.
@Synchro Hey, seam to no problem with php 5.6.30 with composer installation
➜ PHPMailer git:(master) php /usr/local/bin/composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 82 installs, 0 updates, 0 removals
Writing lock file
Generating autoload files
➜ PHPMailer git:(master) php -v
PHP 5.6.40 (cli) (built: Apr 23 2019 11:14:34)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
The same with php-cs-fixer:
PHPMailer git:(master) php vendor/bin/php-cs-fixer --diff --dry-run --verbose fix
Loaded config default from "/Users/jszewczak/php-projects/PHPMailer/.php_cs".
..........
Legend: ?-unknown, I-invalid file syntax, file ignored, S-Skipped, .-no changes, F-fixed, E-error
Checked all files in 20.249 seconds, 30.000 MB memory used
Indeed - it runs locally for me too. I think it may be a Travis-CI environment issue, and that's usually very tedious to debug!
Yay! Fixed!