Inconsistency with lib vendor/markbaker - yii2

I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable
in vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?

The vendor dependency markbaker/complex that throws this syntax error simply requires php 5.6
you need to either update your environment or try an older version of that library

Related

Exception: Error with message "Class yii\codeception\TestCase not found"

So I am just getting started with Codeception (I know, I am late to the game) and Yii2. There is a error I am running into that I don't seem to get fixed.
Problem
When I run 'codecept run', I get the error 'Error with message "Class yii\codeception\TestCase not found". Which is strange to me, because when I look for TestCases, I can find multiple TestCases! F.e. in the folders "backend", "console", ..
Information
Codeception has been installed Globally
The CodeCeption version I am using is the version 4.1.12
When I run any command, the console is giving me the message, "Redirecting to Composer-installed version in vendor/codeception".
What am I doing wrong?
If you guys need any information, hit me up!
Thanks!
Why do you use yii\codeception\TestCase class in your tests?
Have you found it in old tutorial?
yii\codeception\TestCase class was provided by yiisoft/yii2-codeception package which was abandoned back in 2016.
Use Cest format as documented in https://codeception.com/docs/02-GettingStarted#Writing-a-Sample-Test

Can't connect to MariaDB via MATLAB - Invalid MEX File

I am trying to connect to MariaDB using mYm (Mysql wrapper for MATLAB) on MATLAB.
Every time I use mYm to access DB I get an error
Invalid MEX-file 'path\to\DB\MySQL\mYm1.36 64-bit\mym.mexw64': A dynamic link library (DLL) initialization routine failed.
So far what I've understood is that DLL in question i.e. libmysql.dll is not registered.I tried do do that using regsvr32 "path\to\DB\MySQL\mYm1.36 64-bit\libmysql.dll". But that results in following error:
The module path\to\DB\MySQL\mYm1.36 64-bit\libmysql.dll failed to load.
Make sure the binary is stored at specified path or debug it to check for problems with binary or dependent .DLL files.
The specified module could not be found.
I require a solution to fix this error.
I might be wrong in assuming the dll is not registered.

Creating migration history table "migration" Syntex error

I have this Error when run pipeline on bitbucket
./yii migrate --interactive=0
Yii Migration Tool (based on Yii v2.0.33-dev)
Error: syntax error, unexpected ';'
2020-03-04T05:30:03.930868636Z stdout P Creating migration history table "migration"...
From where this Error come and how to resolve this
This the version issue in yii2. 2.0.32 is stable and 2.0.33 is not stable. So this issue occure

Fatal error: can't use function return value in write context in /var/www/html/chamilo/main/inc/lib/api.lib.php on line 1772

I am getting the following error while installing chamilo version 1.11.6.
Fatal error: can't use function return value in write context in /var/www/html/chamilo/main/inc/lib/api.lib.php on line 1772
My php version is 7.2.
This error appears because somehow the PHP version is not 7.2 (but rather <5.5) in the context in which you are executing the page.
Since PHP 5.5, the emty() function was changed to support function results.
See http://php.net/manual/en/function.empty.php
Note:
Prior to PHP 5.5, empty() only supports variables; anything else
will result in a parse error. In other words, the following will
not work: empty(trim($name)). Instead, use trim($name) == false.
My guess is the place where you change the PHP version in your control panel doesn't affect (or didn't affect yet) the place where Chamilo is being loaded.
Ask your hosting provider, maybe?
You can place a "info.php" file with the following content at the root of Chamilo and load it directly through the browser. This will tell you what version PHP is running at in the Chamilo directory:
<?php
phpinfo();
I bet it still shows PHP 5.4...

Cakephp3 show syntax error in webserver

When i put the application in the webserver, i receive that error in log file from app/webroot/error_log but the app works normally in localhost.
[14-May-2015 22:51:59] PHP Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /public_html/app/webroot/index.php on line 29
this release will not work on php < 5.3.0
Please, update Your server config like PHP Configuration