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

Fix Latte 2.5 compatibility #164

Merged
merged 5 commits into from
May 31, 2019
Merged

Conversation

jankonas
Copy link
Contributor

@jankonas jankonas commented Apr 9, 2019

Resolves #159, closes #160, closes #161, closes #162, closes #163

BC breaks! 😱

  • Drops PHP < 7.1 support
  • Maybe breaks on lower latte versions? (See below) no one reported any problem

Minimal Latte version compatibility?

I removed one line from Kdyby\Translation\Extractors\LatteExtractor that depended on function deprecated in Latte 2.4 and removed in Latte 2.5. But I have no idea whether this breaks compatibility with lower Latte versions (in which case the constraint in composer.json should be updated) or not. Is there someone with better knowledge of this package who knows?

…TranslateMacros since it's ancestor uses Tracy\Strict
composer.json Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
@foxycode
Copy link

@jankonas Can you update your PR please?

@jankonas
Copy link
Contributor Author

@foxycode I will after Kdyby/Monolog#35 is merged and new version is tagged.

@jankonas
Copy link
Contributor Author

@foxycode FYI since the mentioned PR only allows Nette 3.0 packages I requested tagging new kdyby/monolog version without it (Kdyby/Monolog#38) so I hope it will be soon :-)

@jankonas jankonas force-pushed the latte-compatibility branch from 2675644 to acee849 Compare May 31, 2019 05:53
@jankonas jankonas changed the title WIP: Fix Latte 2.5 compatibility Fix Latte 2.5 compatibility May 31, 2019
@jankonas
Copy link
Contributor Author

@enumag I think it's ready to merge (and maybe tag new version? 😉).

@@ -46,7 +46,6 @@ public function extractFile($file, MessageCatalogue $catalogue)
{
$buffer = NULL;
$parser = new Parser();
$parser->shortNoEscape = TRUE;
Copy link
Member

Choose a reason for hiding this comment

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

Is it ok to remove this for Latte 2.4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For 2.4 absolutely, it was already deprecated then. For lower versions I'm not sure, but nobody objected when I asked for review here and on Slack.

Copy link
Member

Choose a reason for hiding this comment

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

composer.json here requieres "latte/latte": "^2.4.6@dev", anyway so we don't need to handle the lower versions

@enumag enumag merged commit 0619a64 into Kdyby:master May 31, 2019
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.

Error with latte/latte 2.5.1
4 participants