-
Notifications
You must be signed in to change notification settings - Fork 63
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
Refactor code and consolidate / optimize properties within traits #94
Comments
if you have the parameters e.g. e.g.
But I guess you are still on it as some extensions have this values in the class directly ;) I just realized that this issue only comes with older php version. e.g. i had tested 5.6.16 enabled. I had I get a similar issue with other traits.
But these couldn't get rid of this error by changing the error level inside an older php version. e.g. 5.6.16. |
@Bhoft thanks - these have been already taken care of collectively across all extensions probably at the same time you were commenting 😄 . Do check and let know if any further issue? |
there is still an issue with at least for php version less then 7.0 (so i am not sure what you requirements are) kartik\base\InputWidget and kartik\base\WidgetTrait define the same property ($pluginName) in the composition of kartik\base\InputWidget. yii2-krajee-base/src/InputWidget.php Line 64 in 66bdfd5
|
Fixed via #95 - thanks. |
I think this is the same problem: kartik\export\ExportMenu and kartik\base\TranslationTrait define the same property ($_msgCat) in the composition of kartik\export\ExportMenu. However, the definition differs and is considered incompatible. Class was composed |
@vbazovic ensure you have the latest stable releases of all extensions with dependencies by running composer update (in your case yii2-export and its dependencies) The updated code for ExportMenu does define the properties correctly based on trait definition. |
My first step was composer update and cache cleanup, and the error is after this. But for some reason when I looked, after your reply, in vendor folder there was an old version (1.2.8). What is strange is than on the other machine everything was OK. With identical composer.json. So after some try-error cycles I found out that the problem was missing php-gd library which then forced phpoffice/phpspreedshet to fall back to phpoffice/phpexcel which then downgraded your library to 1.2.8 if you use "@dev", as per your documentation for installing your fantastic library. So what worked for me: Perhaps you can omit "@dev" in documentation? |
The You have mentioned some versions of dependent extensions to |
Thanks for your wonderful work Mr Kartik. My project has 25 composer references to yii2-krajee-base within the vendors folder of my project. The yii2-krajee-base version references are listed below with a count for each (these counts are a sum of yii2-krajee-base references in various composer.json files in the vendor sub-folders).
Can anyone suggest how I should go about resolving my dependency issues? |
You may want to start by reading about PHP Composer package manager to understand what you should be doing and what you should not be doing. You are not supposed to be changing any code or files or JSON configs in the The purpose of using composer package manager is to avoid doing any tinkering of the source codes of vendors. You just need to manage all of your composer package versions and dependencies within Yii2 via a single |
No description provided.
The text was updated successfully, but these errors were encountered: