Skip to content

Commit

Permalink
Merge pull request #20 from cluebotng/feature/php8-work
Browse files Browse the repository at this point in the history
Initial php 8 compatibility
  • Loading branch information
DamianZaremba authored Dec 13, 2024
2 parents 139afd9 + 5994947 commit 78a28d3
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 127 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ cluebot-ng.config.php
# Temp stuff
vendor
titles.txt
.phplint-cache
2 changes: 1 addition & 1 deletion feed_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static function loop($line)
Globals::$optin
)
) {
self::bail($data, 'Outside of valid namespaces');
$logger->addInfo('Skipping due to namespace: ' . $message);
return;
}
$logger->addInfo('Processing: ' . $message);
Expand Down
3 changes: 0 additions & 3 deletions includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
)
);

// Stick with warnings in php 8 (at least for now)
mysqli_report(MYSQLI_REPORT_OFF);

require_once 'cluebot-ng.config.php';
require_once 'action_functions.php';
require_once 'cbng.php';
Expand Down
Loading

0 comments on commit 78a28d3

Please sign in to comment.