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

namespace classname are not properly escaped; breaks TYPO3 7.6 with PHP 7 #78

Closed
albig opened this issue Feb 24, 2018 · 0 comments
Closed

Comments

@albig
Copy link

albig commented Feb 24, 2018

The following exception is thrown with TYPO3 7.6 running PHP 7.0:

#1420281366: $className "\EWW\Dpf\Domain\Model\Document" must not start with a backslash.

In this extension this happens multiple times. Always on iinstantiating with makeInstance or the objectmanager->get(). Sometimes leading backslashes are used, sometimes single quotes, sometimes double quotes.

The error is

Proposal:

  • replace all strings by new PHP (>5.5) "::class" notation
  • e.g. objectmanager->get(\EWW\Dpf\Domain\Model\Document::class)
  • With or without leading backslash is working. In many examples it is with leading backslash. Maybe someone can tell me the difference
@albig albig added the bug label Feb 24, 2018
@albig albig added this to the TYPO3 7.x Compatibility milestone Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant