-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEP PHP Support in CMS5 #144
DEP PHP Support in CMS5 #144
Conversation
c5fc976
to
32d098a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires a CMS 5 version of https://github.com/tractorcow/silverstripe-proxy-db to be available first
32d098a
to
eeb930c
Compare
Passed tests in local env. |
01bf9b6
to
57b5f29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a unit test failing.
9ada1e5
to
55a580c
Compare
It failed test by the third-party module issue |
Can you clarify how you fixed it no your local? This looks like an incompatibility between |
I created new class |
d220f0d
to
02e6064
Compare
02e6064
to
a9b3013
Compare
@sabina-talipova could you please update this PR to include the changed you made on your local |
45b069b
to
b1649b7
Compare
DONE |
.github/workflows/ci.yml
Outdated
@@ -14,3 +14,7 @@ jobs: | |||
# Only run cron on the silverstripe account | |||
if: (github.event_name == 'schedule' && github.repository_owner == 'lekoala') || (github.event_name != 'schedule') | |||
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 | |||
with: | |||
extra_jobs: | | |||
- composer_require_extra: silverstripe/subsites:^3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is subsites being added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
* $debugbar->addCollector(new MonologCollector($logger)); | ||
* </code> | ||
*/ | ||
class MonologCollector extends AbstractProcessingHandler implements DataCollectorInterface, Renderable, MessagesAggregateInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we copy pasting this in from https://github.com/maximebf/php-debugbar/blob/master/src/DebugBar/Bridge/MonologCollector.php?
"maximebf/debugbar": "^1.18"
, which should be PHP 8.1 compatible, is already included in composer.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this method declaration https://github.com/maximebf/php-debugbar/blob/v1.18.1/src/DebugBar/Bridge/MonologCollector.php#L62 is not compatible with version of monolog/monolog
(see here) that we use Monolog\Handler\AbstractProcessingHandler::write(Monolog\LogRecord $record): void
. It still fail our tests https://github.com/lekoala/silverstripe-debugbar/actions/runs/3934516960/jobs/6729336460#step:12:62.
This issue was already created php-debugbar/php-debugbar#514
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, probably need to do this then to workout this issue
Could you please put a class docblock explaining the reason why this class exists, and mention that it should be deprecated and stop being used once the maximebf/php-debugbar works with monolog/monolog:^3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
b8beaa4
to
9abc6bd
Compare
9abc6bd
to
9ec1439
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small change please
Co-authored-by: Steve Boyd <[email protected]>
Parent issue