Skip to content
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

FAIL #250

Closed
wants to merge 2 commits into from
Closed

FAIL #250

wants to merge 2 commits into from

Conversation

nerun
Copy link

@nerun nerun commented Aug 19, 2023

This PR fix deprecation warnings in PHP 8+ and Jack Jackrum: PageResolver and MediaResolver.

Related to issue #241

@nerun
Copy link
Author

nerun commented Aug 19, 2023

I don't know why your tests have failed, but it's working here: page move, page rename etc.

Copy link
Owner

@michitux michitux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the tests show, this is not a simple refactoring but breaks the plugin. Please fix the code so the tests pass again.

@@ -66,7 +69,7 @@ public function resolveMoves($old, $type) {

if($type != 'media' && $type != 'page') throw new Exception('Not a valid type');

$old = resolve_id($this->origNS, $old, false);
$old = (new PageResolver($this->origNS))->resolveId($old);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve_id is not the same as PageResolver. I assume, but I'm not sure, that this breaks the tests as you can see from the checks. The test breakages look quite strange, as if there was a quite fundamental error somewhere. I don't know where it comes from but please run the tests and debug where the differences come from.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed from PageResolver to FileResolver.

@michitux
Copy link
Owner

I don't know why your tests have failed, but it's working here: page move, page rename etc.

The failing tests concern the adaptation of the links after the move, not the actual moving of the page.

@nerun nerun closed this Aug 19, 2023
@nerun
Copy link
Author

nerun commented Aug 19, 2023

Not working. Don't know how to fix. Closing.

@nerun nerun changed the title Fixed deprecation warnings PHP8+ in helper/handler. FAIL Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants