* Update CI for PHP 8.4
* Update composer deps for PHP 8.4
* Updates
* This is the default mode and this constant causes test failutes
* Explicily install the PDO extensions
* Temporarily downgrade the live tests to PHP 8.3
It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin
* Update to address deprecations
* Make that nullable
* Fixed my typo
* Bump PHPunit to v11
* Also take care of two minor things
* Formatting fix
* Replaced Maxmind's IP database
* Began rebuilding GeoIP reader functionality
The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.
Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.
(Plus my aim is already to replace the MaxMind DB due to it's licencing)
* Created an IP address lookup page
* + ASN info
* Bump last patch
* Make PHPStan happy
* Very minor refactor + PHPDocs
* Remove additional hardcoded lists (countries & phone codes)
Also fixed a few UI oddities I noticed
* Bugfixes
* Removed the old reference to the polyfill
* Fixed a typo
* Removed the hardcoded currencies list
Also streamlined the process of adding new currencies by allowing the title & exchange rate to automatically be determined.
* Use an existing translatable string
* Update the test workflows
* Dropped the legacy test, wrote two new ones
* Fixed a typo in my assert
* Whooooops
- Removed unused twig extension, May a tiny bit of ram and reduce memory usage.
- Switch to the filesystem `touch` function VS PHP's native. Also corrected the time used for touch.
- Wrapped our call to monolog's `write` function in a try-catch. These don't need to be fatal. Instead logs to the PHP error log.
- Ensured the SSL redirect won't be triggered if needed headers weren't provided. Prevents logged errors
- Removed unused composer deps.
- Moved cURL to being a required extension in our composer.json file
- Replaced a a case where the death star version constraint was being used.
* Brought in the debugbar extension
Co-Authored-By: Yağızhan <hi@yagiz.dev>
* Completely restructured
Redid the previous work to allow us to pass around a single instance of the debug bar, allowing us to leverage more types of data collection.
* Added some more time measurements
* Enabled HTML var dumper, added config collector
* Fix
---------
Co-authored-by: Yağızhan <hi@yagiz.dev>
* Update PHPUnit to version 10
Update composer and CI version of PHPUnit to 10, and migrate XML config to updated schema.
* Update tests for PHPUnit 10
Update tests to replace depreciated functions in PHPUnit 10. Also, remove risky tests which don't assert anything.
* Update monolog/monolog to version 3.5
* Update Monolog priority levels to use Level enum
Update Monolog library class to use Level enum for priority levels, as previous constants depreciated.
* Bump minimum PHP version to 8.1
* Missed these too
* Shit's broke and stupid as fuck
* Update SentryHelper.php
* Update package-lock.json
* I did the fixing
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Remove php-http/message-factory
* Don't report error reporting changes on preview builds
We don't have a way to reliably track / compare this, so the message would otherwise almost always be displayed.
Hiding the massage on preview builds resolves that
* Downgrade errors in the API controller
None of these are really errors, so let's convert them to InformationException so they aren't captured and sent to Sentry
* Began implementing Sentry.io support
* Added to the installer
* Added the ID to the bug report template and UI
* Hook it into our error handler, added the ability to filter by error code
* Attempting to add the DSN via GH actions
* Spelling and making PHPstan happy
* Skip exceptions for various incomplete configurations
Also brings in some of the category suggestions made by @Anuril in #195
* Update tests to account for changes
* Added & renamed exception classes
* Fix tests
* Change a bunch of items to be InformationExceptions
* Use a lighter HTTP client, fixed API error reporting
* I guess that's not needed now?
Arighty then
* Improvements, additional info added
* Update SentryHelper.php
* Improved error logging, added instance ID to error page
Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions
* Make the tests happy
* Added the link, improved wording
Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that
* Began implementing UI alerts and info
* Added the ability to toggle, fixed tests, use path constants
* Added some useful info & links to the page
* These should be InformationException
* Fix the automated Sentry DSN entry
* Fix the install number text
* Minor cleanup, converted more to InformationException
* Replaced some direct config references with constants
We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.
Using the constant means there's less locations to update the reference if the config structure is changed
* Bugfix
* Consistency & fixed a PHPDoc
* Corrections
* We actually do want exceptions thrown here
* Change how we get the instance ID
* Stability improvements
Having support for translatable error pages was proving to be problematic, so I had to remove it.
I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)
* Missed this change on git
* Also fix the variable names...
* Re-added new deps after rebase
* This should also accept "Error" types
* Added more info to the bug report and removed a dug line
* This wasn't supposed to get renamed
* Updated some missed references to Box_Exception
* Replace composer's dev autoloader with AntLoader
This way, people don't need to specifically remember to remove dev deps before uploading to a server.
* Move to the tests bootstrap file
* Implemented Monolog
* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.
* Doesn't need to be an array
* -Box_LogStream
* Reverted squash
* Fixed a duplicate
* Type hinting
* This got lost in a merge commit
* Kind of distracted today. Good thing squash and merge exists.
* Cleaning
* Rebased composer.json & lockfile
* Enabled the check again
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Implement a custom autoloader
* Remove unreachable line
* Spelling
* I missed that
* Just use the latest version of PHPStan
* Also setup the autoloader in the installer
* Implemented classmap capabilities
* Remove debug line, add PHPDocs
* Typo 7 removing dead code
* Fix the installer after the most recent commit
* Remove outdated installation steps
And link to the website instead
* Excuse me. Formatting please?