Commit Graph
14 Commits
Author SHA1 Message Date
Adam Daley c8dee1b3d7 Update PHPStan to ignore erroneous error (#2789)
* Update PHPStan to ignore erroneous error

* Fix PHPStan ignore regex escaping

* Fix PHPStan baseline spacing
2025-06-11 18:20:52 +01:00
Adam DaleyandCopilot 6eb9c15a69 Fix DirectAdmin package matching and reseller account creation (#2765)
* Fix DirectAdmin package matching

* Fix DirectAdmin Reseller Creation

Closes #2306.

* Update src/library/Server/Manager/Directadmin.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-31 03:05:30 +01:00
renovate[bot]andAdam Daley ad202a81e8 fix(deps): update dependency gabordemooij/redbean to v5.7.5 (#2764)
* fix(deps): update dependency gabordemooij/redbean to v5.7.5

* Remove unnecessary PHPStan ignore

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-30 06:47:22 +01:00
Adam Daley 2a4cd43a94 Bump CI reusable workflows to latest (#2619) 2025-03-01 18:34:44 +00:00
renovate[bot]andBelle Aerni 96fa36b3e3 chore(deps): update dependency rector/rector to v2 (#2545)
* chore(deps): update dependency rector/rector to v2

* Updated PHPStan and related deps

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-12-17 12:20:41 -08:00
Belle Aerni 76321faf8e Misc fixes and cleanup (#2299)
* Misc fixes and cleanup

* More misc cleanup

* Removed outdated / invalid tests

* Update SentryHelper.php
2024-06-10 20:32:44 -07:00
Robert Thomas 1bea222a26 Refactor Server Library + Improve Docs (#2063)
* Refactor `Server` library component + improve docs

* Refactor `Server` library component + improve docs

* More meaningful documentation

* Allow null strings

* Generate new PHPStan baseline

* Address comments + Rector and PHP-CS-Fixer

* Handle converting package bandwidth and disk quota into bytes

* Remove previous PHPStan baseline change

* Fix `password_length` bug caused by previous PR
It seems that the database code automatically converts camel case (`passwordLength`) into snake case (`password_length`)

* Rectify migration

* Resolve merge issue
2024-01-16 04:40:22 -08:00
Belle Aerni 1881ff7bfb Bump PHPStan analysis level (#1641)
* Bump PHPStan to level 2
2023-09-28 09:06:58 +02:00
Belle Aerni 2058af6885 Remove Virtualmin and ISPConfig Server Managers (#1527)
* Remove Virtualmin and ISPConfig Server Managers

These don't work correctly and we don't currently have anyone to maintain them. I've taken the current versions and moved them to their own repositories so work can be continued on them at any point, but there's no reason for us to include them for the time being.

* Remove the ignored error for ISPConfig 3
2023-08-10 07:53:13 +02:00
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* Apply PHP Code Styling & Quality Changes

* Delete these

* Update .gitignore

* Fixes for PHPStan

* Ignore spelling in the gitnore

* Allow null for that type

Honestly doing so makes ZERO sense, but it matches the current behavior.

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 08:57:44 -07:00
Belle Aerni 4338aac628 Fix some server manager exceptions (#998)
* Fix some server manager exceptions

* Update phpstan-baseline.neon

* Also fixed a few errors in the Plesk adapter
2023-03-27 07:53:40 +02:00
Adam de0bed20ec Replace various HTTP client implementations with symfony/http-client (#861)
* Replace guzzlehttp/guzzle with symfony/http-client

Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.

* Replace Box\Curl library and native cURL with symfony/http-client

Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.

* Remove obsolete functionality from Spamchecker module

Remove obsolete functions from Spamchecker module which depended upon cURL.
2023-03-15 11:11:28 +01:00
Belle Aerni 65971839ab Update phpstan-baseline.neon 2023-01-17 14:27:56 -08:00
Belle Aerni 1bb7dc2fd0 Introduce PHPStan 2022-12-19 12:54:12 -08:00