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

[1.3.2] PHP 7 Kompatibilität #86

Closed
baumisimon opened this issue Dec 8, 2015 · 10 comments
Closed

[1.3.2] PHP 7 Kompatibilität #86

baumisimon opened this issue Dec 8, 2015 · 10 comments
Assignees
Milestone

Comments

@baumisimon
Copy link

Folgender Fehler kommt beim Bearbeiten einer Benachrichtigung bei Einsatz von PHP 7 (final):

Fatal error: Cannot use NotificationCenter\Util\String as String because 'String' is a special class name in /system/modules/notification_center/library/NotificationCenter/Gateway/File.php on line 15
@baumisimon baumisimon changed the title [3.3.3] PHP 7 Kompatibilität [1.3.2] PHP 7 Kompatibilität Dec 8, 2015
@aschempp
Copy link
Member

aschempp commented Dec 8, 2015

We would need to drop support for Contao < 3.5 for a good fix. The only other option I can think of is a version_compare …

@Toflar
Copy link
Member

Toflar commented Dec 8, 2015

Yes, we would need to make it 3.5.4+ only (which applies for all Contao extensions that want to be compatible with PHP7 and use the String class). Also it will be kind of a mess because we also have a String named util class :D

@aschempp
Copy link
Member

aschempp commented Dec 8, 2015

Not sure if we actually use the Contao String class. If we rename and deprecate our class the problem should be gone from that side.

@Toflar
Copy link
Member

Toflar commented Dec 8, 2015 via email

@Mynyx
Copy link

Mynyx commented Jan 27, 2016

Dies scheint der einzige Punkt zu sein, bei dem es für eine PHP 7 Kompatibilität von Isotope noch hängt?
isotope/core#1602

@Toflar
Copy link
Member

Toflar commented Jan 28, 2016

Hab die Liste aktualisiert, aber wie man an der Liste sieht, ist das längst nicht alles.

@aschempp
Copy link
Member

@qzminski can you provide a PR for this (in regards to isotope/core#1602)? I would suggest a version_compare like we do in all the other places already...

@Toflar
Copy link
Member

Toflar commented Feb 26, 2016

However, this one is more complicated because we have our own String class that needs to be renamed :)

@aschempp
Copy link
Member

Yeah, similar to Contao 3.2 right? We «just» need to add the new class and keep the BC for third-party extensions.

@qzminski
Copy link
Member

qzminski commented Mar 2, 2016

Fixed in 8084e2b.

@qzminski qzminski closed this as completed Mar 2, 2016
@Toflar Toflar added this to the 1.3.5 milestone Mar 2, 2016
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

No branches or pull requests

5 participants