View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [PHP8] Depreciation notice on require param after optional param - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

[PHP8] Depreciation notice on require param after optional param

More
05 Jan 2021 11:08 #1 by bbalet
In view/objectDetail.php, you can find this odd signature with an optional paramater that is not placed at the end :
function drawStructureFromObject($obj, $refresh=false, $way, $item) {

This is depreciated in PHP8 and will cause an error with the following versions. After examining all the callers, I suggest to remove the optionnality:

function drawStructureFromObject($obj, $refresh, $way, $item) {

 

Please Connexion or Create an account to join the conversation.

More
05 Jan 2021 11:34 #2 by bbalet
Same error, same fix for:

function drawSubscriptionsList($obj, $refresh=false, $limitToActive) {
function drawVersionStructureFromObjectAsset($obj, $refresh=false, $way, $item) {
function drawVersionStructureFromObject($obj, $refresh=false, $way, $item) {

Please Connexion or Create an account to join the conversation.

More
06 Jan 2021 00:30 #3 by babynus
Hi,

Yes, I started to test under PHP8, wich requires (weel it's only deprecated message yet) that optional parameter cannot be followed by required one.
We fixed with different, but systematic solution : after optional parameter, existing required parameters are set option with null value

function drawStructureFromObject($obj, $refresh=false, $way=null, $item=null) {

This will work in all cases as these parameters are always set (they were required).

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
06 Jan 2021 00:34 #4 by babynus
function drawSubscriptionsList($obj, $refresh=false, $limitToActive) {
function drawVersionStructureFromObjectAsset($obj, $refresh=false, $way, $item) {
function drawVersionStructureFromObject($obj, $refresh=false, $way, $item) {
Yes, I already found these errors during first PHP8 testing, and few others in tcpdt_fonts.php, tcpdf_static.php, EmployeeManagerMain.php, RequestHandler.php, PlannningElementMain.php, ImputationLine.php and projeqtor.php

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.033 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.