?
avatar Serhioromano
Serhioromano
11 Apr 2018

Produce error

Steps to reproduce the issue

run in terminal php ./build/stubGenerator.php

Expected result

stub.php generated

Actual result

Fatal error: Class Joomla\CMS\Crypt\Cipher\CryptoCipher contains 1 abstract method and must theref
ore be declared abstract or implement the remaining methods (Joomla\Crypt\CipherInterface::isSuppo
rted) in C:\OSPanel\domains\joomla4\libraries\src\Crypt\Cipher\CryptoCipher.php on line 21

System information (as much as possible)

php 7.2
Windows 7 SP1
Terminal in PHPStorm

Additional comments

No

avatar Serhioromano Serhioromano - open - 11 Apr 2018
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Apr 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2018
Title
[4.0] Ffatal error on stub generation
[4.0] Fatal error on stub generation
avatar joomla-cms-bot joomla-cms-bot - edited - 11 Apr 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2018
Category CLI
avatar Bakual
Bakual - comment - 11 Apr 2018

Works fine for me with PHP 7.2.1.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2018
Status New Discussion
avatar Serhioromano
Serhioromano - comment - 11 Apr 2018

Do you use release or install from github branch? Also error message is clear. Do you have abstract method in Class Joomla\CMS\Crypt\Cipher\CryptoCipher in your version?

avatar Bakual
Bakual - comment - 11 Apr 2018

latest github 4.0-dev branch. And no, that class doesn't have an abstract method.
See https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Crypt/Cipher/CryptoCipher.php

avatar mbabker
mbabker - comment - 11 Apr 2018

The file clearly shows that the method that your error message says is missing is there (the error message is saying the interface's isSupported method is not defined).

avatar Bakual
Bakual - comment - 11 Apr 2018

Just checked, that method was commited last november (Bakual/joomla-cms@0ae9aaa).

I'm closing this issue as it looks just like your installation is outdated. It looks like the alpha which was released just between the lines got added to the interfaces and the above mentioned commit.

avatar Bakual Bakual - change - 11 Apr 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-04-11 14:02:51
Closed_By Bakual
avatar Bakual Bakual - close - 11 Apr 2018

Add a Comment

Login with GitHub to post a comment