Commit Graph

2204 Commits

Author SHA1 Message Date
Marcus Bointon 7b46afb098
Merge pull request #2700 from jrfnl/feature/composer-update-parallel-lint-restraints
Composer: update PHP Parallel Lint and Console Highlighter
2022-06-14 10:59:28 +02:00
jrfnl 29177b4766
Composer: update PHP Parallel Lint and Console Highlighter
PHP Console Highlighter has released version `1.0.0` and PHP Parallel Lint version `1.3.2` is the first PHP Parallel Lint version which supports PHP Console Highlighter `1.0.0`.

As the minimum supported PHP version is still PHP 5.3 for both, we can safely update both dependency requirements.

Refs:
* https://github.com/php-parallel-lint/PHP-Console-Highlighter/releases/tag/v1.0.0
* https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.3.2
2022-06-14 10:53:57 +02:00
Marcus Bointon 8819eba844
Merge pull request #2665 from jrfnl/feature/lint-show-deprecated
Composer script: show deprecations when linting and update lint dependencies
2022-06-14 10:49:01 +02:00
Marcus Bointon a4bf414da6
6.6.1 2022-06-14 10:19:03 +02:00
Marcus Bointon 0ad3a474af
Don't clear errors on RSET, fixes #2696 2022-06-14 10:17:49 +02:00
Marcus Bointon bf99c202a9
Avoid passing null to functions, fixes #2667 2022-04-12 10:05:58 +02:00
Marcus Bointon 88a21e101f
Merge pull request #2666 from PHPMailer/dependabot/github_actions/maxheld83/ghpages-0.3.0
GH Actions: Bump maxheld83/ghpages from 0.2.1 to 0.3.0
2022-04-07 22:33:00 +02:00
dependabot[bot] 8ab58f1d16
GH Actions: Bump maxheld83/ghpages from 0.2.1 to 0.3.0
Bumps [maxheld83/ghpages](https://github.com/maxheld83/ghpages) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/maxheld83/ghpages/releases)
- [Commits](https://github.com/maxheld83/ghpages/compare/v0.2.1...v0.3.0)

---
updated-dependencies:
- dependency-name: maxheld83/ghpages
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 20:19:01 +00:00
Marcus Bointon 3480465914
Merge pull request #2664 from jrfnl/feature/add-dependabot-config-for-ghactions
Add dependabot configuration file
2022-04-07 22:18:30 +02:00
jrfnl 38355bb140
Composer script: show deprecations when linting
While rare, there are some deprecations which PHP can show when a file is being linted.
By default these are ignored by PHP-Parallel-Lint.

Apparently though, there is an option to show them (wasn't documented until recently), so let's turn that option on.
2022-04-07 14:05:06 +02:00
jrfnl b7ba94e0f5
Add dependabot configuration file
This commit adds an initial Dependabot configuration to:
* Submit pull requests for security updates and version updates for GH Action runner dependencies.

At a later point in time, it could be considered to enable it for Composer dependencies as well.

The configuration has been set up to:
* Run weekly.
* Submit a maximum of 5 pull requests at a time.
    If additional pull requests are needed, these will subsequently be submitted the next time Dependabot runs after one or more of the open pull requests have been merged.
* The commit messages for PRs submitted by Dependabot will be prefixed with "GH Actions:" similar to previous PRs I've submitted manually for the same.
2022-04-07 14:04:02 +02:00
Marcus Bointon 0ddee75e3a
Merge pull request #2663 from jrfnl/feature/ghactions-update-codecov
GH Actions: version update for codecov action runner
2022-04-07 11:13:36 +02:00
jrfnl ee3570ea70
GH Actions: version update for codecov action runner
Yet another predefined action has had a major release.

This is, again, mostly just a change of the Node version used by the action itself (from Node 12 to Node 16).

Refs:
* https://github.com/codecov/codecov-action/releases
2022-04-05 23:49:50 +02:00
Marcus Bointon 0912769c66
#SlavaUkraini 2022-03-11 07:35:51 +01:00
Marcus Bointon 85350ad372
#SlavaUkraini 2022-03-11 07:33:49 +01:00
Marcus Bointon 76b348ebac
Fix test order 2022-03-08 22:39:06 +01:00
Marcus Bointon a3028ab03b
This wasn't actually testing BCC-only addressing! 2022-03-08 22:37:13 +01:00
Marcus Bointon c402bb4425
Merge pull request #2641 from jrfnl/feature/ghactions-update-various-actions
GH Actions: version update for various predefined actions
2022-03-05 23:58:38 +01:00
jrfnl 21856c00e5
GH Actions: version update for various predefined actions
A number of predefined actions have had major release, which warrant an update the workflow(s).

These updates don't actually contain any changed functionality, they are mostly just a change of the Node version used by the action itself (from Node 14 to Node 16).

Refs:
* https://github.com/actions/checkout/releases
2022-03-05 15:36:07 +01:00
Marcus Bointon e43bac82ed
Changelog 2022-02-28 16:31:21 +01:00
Marcus Bointon ce32116f3b
Merge pull request #2526 from miken32/master
Provide additional error details after connection failures
2022-02-28 16:08:19 +01:00
Marcus Bointon 3525f1b6da
Give up on that test config 2022-02-28 16:03:27 +01:00
Marcus Bointon 70c20c6324
Rearrange tests to deal with version issues 2022-02-28 15:48:25 +01:00
Marcus Bointon cb53dde517
6.6.0 2022-02-28 15:26:21 +01:00
Marcus Bointon 03649a2ffb
CS 2022-02-28 15:11:05 +01:00
Marcus Bointon ec421d0680
CS 2022-02-28 15:09:27 +01:00
Marcus Bointon d8002e5482
Add simple OAuthTokenProvider tests 2022-02-28 15:06:17 +01:00
Marcus Bointon 5a4f1f3a2a
Changelog 2022-02-28 14:36:07 +01:00
Marcus Bointon 2611db096a
Merge pull request #2524 from pdscopes/feature/oauth-interface
#2523 OAuth Interface
2022-02-28 14:32:31 +01:00
Marcus Bointon a24029b108
Add corrected @covers tag 2022-02-18 18:21:21 +01:00
Marcus Bointon c0d9f7dd3c
6.5.4 2022-02-17 09:19:04 +01:00
Marcus Bointon 7421ac9186
Changelog 2022-02-17 09:18:00 +01:00
Marcus Bointon a876f998bd
Avoid PHPUnit 4.8 issue in PHP 5.5! 2022-02-16 20:03:35 +01:00
Marcus Bointon 6f6ce4f34a
Add XMailer tests 2022-02-16 19:32:38 +01:00
Marcus Bointon b930f1587f
Rejig setting XMailer to avoid PHP 8.1 issue, fixes #2635 2022-02-16 19:32:11 +01:00
Marcus Bointon 7ac1bd3ac0
Restrict shell-based mailers if we can't use them safely, fixes #966 2022-02-16 17:39:25 +01:00
Marcus Bointon 7e1da4fae3
Merge pull request #2594 from jrfnl/feature/ghactions-update-codecov-action
GH Actions: version update for `codecov/codecov-action`
2022-02-05 01:15:49 +01:00
jrfnl a4cf5b6e89 GH Actions: version update for `codecov/codecov-action`
A while back the `codecov/codecov-action` released a new major.

As per the release notes:
> On February 1, 2022, the v1 uploader will be full sunset and no longer function. This is due to the deprecation of the underlying bash uploader. This version uses the new uploader.

Considering Feb 2022 is creeping closer every day, updating seems prudent.

> Multiple fields have not been transferred from the bash uploader or have been deprecated. Notably many of the `functionalities` and `gcov_` arguments have been removed.

This repo does not seem to be affected by this.

Refs:
* https://github.com/codecov/codecov-action/releases/tag/v2.0.0
* https://github.com/codecov/codecov-action/releases/tag/v2.0.1
* https://github.com/codecov/codecov-action/releases/tag/v2.0.2
* https://github.com/codecov/codecov-action/releases/tag/v2.0.3
* https://github.com/codecov/codecov-action/releases/tag/v2.1.0
2021-12-26 19:38:16 +01:00
Marcus Bointon d4bf3504b9
Merge pull request #2595 from jrfnl/feature/ghactions-update-actions-checkout
GH Actions: version update for `actions/checkout`
2021-12-26 19:26:31 +01:00
jrfnl fbfc9f2909 GH Actions: version update for `actions/checkout`
Ref: https://github.com/actions/checkout/releases
2021-12-26 00:39:36 +01:00
Marcus Bointon 8c952fb573
Merge pull request #2590 from jrfnl/feature/ghactions-update-composer-action 2021-12-24 10:08:01 +01:00
jrfnl 7fe0ce642b GH Actions: version update for `ramsey/composer-install`
The action used to install Composer packages and handle the caching has released a new major (and some follow-up patch releases), which means, the action reference needs to be updated to benefit from it.

Refs:
* https://github.com/ramsey/composer-install/releases/tag/2.0.0
* https://github.com/ramsey/composer-install/releases/tag/2.0.1
* https://github.com/ramsey/composer-install/releases/tag/2.0.2
2021-12-24 05:09:10 +01:00
Marcus Bointon efd3262af8
Merge pull request #2589 from jrfnl/feature/composer-allow-phpcs-plugin 2021-12-23 08:19:51 +01:00
jrfnl d94fd80848 Composer: allow the PHPCS plugin
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS.

As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run. This adds the necessary configuration for that.

Refs:
* https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
2021-12-23 03:05:11 +01:00
Marcus Bointon 8c7fe5e688
Merge pull request #2588 from nogaruki/patch-1
Update phpmailer.lang-fr.php
2021-12-22 19:56:30 +01:00
nogaruki f62d638c0b
Update phpmailer.lang-fr.php 2021-12-22 15:39:32 +01:00
Marcus Bointon a69cfb1860
Merge pull request #2584 from jrfnl/feature/php-8.2-fix
Bug fix for typo in property name (x2)
2021-12-18 17:51:36 +01:00
jrfnl 9c88a5ca9b Bug fix for typo in property name (x2)
The `$CharSet` property name as declared in the class starts with a capital, while there were two places in the code where the property was referred to as `$this->charSet`, which is a non-existent property.

In PHP 8.2, this is regarded as access to a dynamic property and will generate deprecation notices.

In effect, this meant that the `PHPMailer::parseAddresses()` method would be called with `null` as the value for the `$charset` parameter.
This `null` value would then subsequently be passed on to the PHP native `mb_internal_encoding()` function, which now didn't get the correct encoding.

This may have led to mail sending failures due to the address encoding being incorrect. If there are any bug reports open for this, it may be a good idea to evaluate whether they could be related to this bug.

Found by dseguy via Exakat.

Note: this issue was not flagged by the tests as the tests for the `PHPMailer::parseAddresses()` method, only test the method either with a valid value for encoding òr without the `$charset` parameter set, but not with an explicit `null` value..

As the `$charset` parameter for `PHPMailer::parseAddresses()` has a sensible default value and is not explicitly nullable, adding a test for this incorrect use of the method seems over the top.

I have, however, ensured that the non-nullability of the parameter is now documented for the method.

Refs:
* https://wiki.php.net/rfc/deprecate_dynamic_properties
* https://www.php.net/manual/en/function.mb-internal-encoding.php
2021-12-18 17:42:39 +01:00
Marcus Bointon ff796f28f6
Merge pull request #2583 from jrfnl/feature/composer-update-version-constraints
Composer: update version constraints
2021-12-18 17:12:27 +01:00
jrfnl d5a5ad19cd CS: minor cleanup
PHPCS 3.6.2 added a sniff for a PSR-12 rule which was previously not strictly checked: "No blank line after the opening brace of a class".

This fixes the newly flagged issues.
2021-12-18 04:08:22 +01:00