phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
- Mike-on-Tour
- Supporter

- Beiträge: 1443
- Registriert: 13.01.2020 21:09
- Kontaktdaten:
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Da schließe ich mich gerne an, ich nutze dieses wunderbare Tool ja regelmäßig und bin sehr froh, dass es das gibt.
Kein Support über PN!
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Auch meinerseits ein Herzlichen Dank, eines der wichtigsten Tools zur EXT Prüfung.
- Talk19zehn
- Ehemaliges Teammitglied
- Beiträge: 5078
- Registriert: 08.06.2009 12:03
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Hello LukeWCS,
heute erstmalig "durchgelaufen"
phpBB Ext Check
ohne Fehlerchen: Alle Häkchen korrekt / Grün.
Auch ich danke dir sowie den Beteiligten für euer unermüdliches Tun, Handeln und stetigen Anpassungen.
LG
heute erstmalig "durchgelaufen"
phpBB Ext Check
Auch ich danke dir sowie den Beteiligten für euer unermüdliches Tun, Handeln und stetigen Anpassungen.
LG
Adventereigniskalender für phpBB 3.3.x
Meine persönliche Meinung im Jahr 2024: Im Zenit seiner Popularität wirkt KI zunächst wie eine Blaupause und lässt sich aufgrund der Vielschichtigkeit nicht auf eine einzige Botschaft reduzieren. Meine Tastatur klemmt.
Meine persönliche Meinung im Jahr 2024: Im Zenit seiner Popularität wirkt KI zunächst wie eine Blaupause und lässt sich aufgrund der Vielschichtigkeit nicht auf eine einzige Botschaft reduzieren. Meine Tastatur klemmt.
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Thank you for this great tool!
There is only one thing I find hard to understand and fix. Thats the VariableAnalysis.
The most common warning for me is: Unused function parameter $event.
An example: 174 | WARNING | Unused function parameter $event.
This is the line:
From:
There is only one thing I find hard to understand and fix. Thats the VariableAnalysis.
The most common warning for me is: Unused function parameter $event.
An example: 174 | WARNING | Unused function parameter $event.
This is the line:
public function viewtopic_page($event): voidFrom:
Code: Alles auswählen
/**
* @param \phpbb\event\data $event
* @return void
*/
public function viewtopic_page($event): void
{
if (empty($this->config['topicstats_active']))
{
return;
}
$location = (int) $this->config['topicstats_location'];
if (!$this->topicstats->is_valid_location($location))
{
$location = topicstats::BEFORE_FIRST_POST;
}
$this->template->assign_vars([
'TOPICSTATS_ENABLED' => true,
'TOPICSTATS_LOCATION' => $location,
'TOPICSTATS_ALL_PAGES' => (bool) $this->config['topicstats_all_pages'],
'TOPICSTATS_AUTHOR' => (bool) $this->config['topicstats_author'],
'TOPICSTATS_MODAL' => (bool) $this->config['topicstats_modal'],
]);
}
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Hi
Find:
Replace with:
This:
Find:
Code: Alles auswählen
public function viewtopic_page($event): void
Code: Alles auswählen
public function viewtopic_page(): void
$event is not needed in this function.- Mike-on-Tour
- Supporter

- Beiträge: 1443
- Registriert: 13.01.2020 21:09
- Kontaktdaten:
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
If you are not using the
will work as well and you will no longer get warnings from VA.
Another thing which regularly will be notified by VA is using an associative array of arrays through which you go with
This will give you the warning that
The answer to your (unspoken) question would be: Ignore the warnings, they are just a formality because VA cannot find the variable within the code where it should be used.
$event variable within the function of an event listener you do not need to use it, the listener will work as intended, so a function declaration changed to
Code: Alles auswählen
public function viewtopic_page(): voidAnother thing which regularly will be notified by VA is using an associative array of arrays through which you go with
Code: Alles auswählen
foreach ($array as $key => $subarray)
{
// Do something with $key but not with $subarray
}
$subarray is an unused variable (which is correct, but you need it to define the structure of $array).The answer to your (unspoken) question would be: Ignore the warnings, they are just a formality because VA cannot find the variable within the code where it should be used.
Kein Support über PN!
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
@Stoker
In addition to what Kirk and Mike-on-Tour wrote:
A PHP function doesn't necessarily have to provide a function parameter for every value passed to it. If you don't need any of the data passed to your function, you don't have to accept that data in your function. In your case, you are only using the PHP event as an execution trigger for your own code, but you do not need the event data itself.
But: Take a look at section 4 in the first post of this thread. There you'll find important information to help you evaluate a report more easily. It doesn't all have to be "green"; there are only two check modules where there absolutely must be no errors:
In addition to what Kirk and Mike-on-Tour wrote:
A PHP function doesn't necessarily have to provide a function parameter for every value passed to it. If you don't need any of the data passed to your function, you don't have to accept that data in your function. In your case, you are only using the PHP event as an execution trigger for your own code, but you do not need the event data itself.
But: Take a look at section 4 in the first post of this thread. There you'll find important information to help you evaluate a report more easily. It doesn't all have to be "green"; there are only two check modules where there absolutely must be no errors:
- phpBB PHP Strict Standard Extensions (PPSSE)
- YAMLcheck (YMLC)
Möge das Backup mit dir sein. Immer.
Kein Support via PN! Siehe den Punkt "Private Nachrichten" im phpBB.de-Knigge.
Erweiterungen - Infos zur artgerechten Haltung / phpBB Ext Check - Analyse von Erweiterungen bezüglich Vorgaben und Kompatibilität
Kein Support via PN! Siehe den Punkt "Private Nachrichten" im phpBB.de-Knigge.
Erweiterungen - Infos zur artgerechten Haltung / phpBB Ext Check - Analyse von Erweiterungen bezüglich Vorgaben und Kompatibilität
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Thank you guys.
That makes sense and its logical. You just have to know that first
I'll take a look at section 4
That makes sense and its logical. You just have to know that first
I'll take a look at section 4
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
Another question, not about the EC itself, but about the reports.
Are we allowed to include them in extensions when we submit? I think the Validation Team can benefit from them.
And include them in the topics where we present the extension? It doesnt tell if the extension actual does what it should, but it is a proof of quality.
Are we allowed to include them in extensions when we submit? I think the Validation Team can benefit from them.
And include them in the topics where we present the extension? It doesnt tell if the extension actual does what it should, but it is a proof of quality.
Re: phpBB Ext Check - Diskussion bezüglich Prozedur und Reports
I don't see any fundamental problem with that. If you create aStokerP hat geschrieben: 28.04.2026 07:26 Are we allowed to include them in extensions when we submit?
docs folder and save the EC report there, it shouldn't be an issue. This folder is practically a standard location for including README files or changelogs.I doubt that makes sense. For one thing, a validator can't trust anything contained in an uploaded ZIP file, because part of their job is to verify that everything is legitimate. And even if a validator were familiar with EC, they wouldn't trust the report because it was generated in an external environment over which they have no control. Such a report could also have been manipulated.I think the Validation Team can benefit from them.
I'm also rather skeptical about this, because end users who don't program in PHP themselves and/or have no knowledge of extension development can neither analyze nor evaluate such a report. That's one problem. The next problem is that an Ext Check report may well contain warnings (as we have clarified here), and these could deter some end users because they cannot assess them.And include them in the topics where we present the extension? It doesnt tell if the extension actual does what it should, but it is a proof of quality.
Möge das Backup mit dir sein. Immer.
Kein Support via PN! Siehe den Punkt "Private Nachrichten" im phpBB.de-Knigge.
Erweiterungen - Infos zur artgerechten Haltung / phpBB Ext Check - Analyse von Erweiterungen bezüglich Vorgaben und Kompatibilität
Kein Support via PN! Siehe den Punkt "Private Nachrichten" im phpBB.de-Knigge.
Erweiterungen - Infos zur artgerechten Haltung / phpBB Ext Check - Analyse von Erweiterungen bezüglich Vorgaben und Kompatibilität