mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-71011 php80: final private makes no sense, throwing warning
Ref: https://php.watch/versions/8.0/final-private-function#final-private This applies #712 from upstream libraries. Unrelated: I've also changed a occurrence of "private final" by the correct (PSR-12) "final private" in the constructor (the final&private combination is allowed in constructors) in lib/classes/event/base.php, because it's the unique case in core and phpcs was really insisting.
This commit is contained in:
parent
91969d1e04
commit
59a8b7182b
5 changed files with 6 additions and 6 deletions
|
@ -1125,7 +1125,7 @@ class ADODB_Active_Record {
|
||||||
*
|
*
|
||||||
* @return string The quoted name
|
* @return string The quoted name
|
||||||
*/
|
*/
|
||||||
final private function nameQuoter($db,$string)
|
private function nameQuoter($db,$string)
|
||||||
{
|
{
|
||||||
global $ADODB_QUOTE_FIELDNAMES;
|
global $ADODB_QUOTE_FIELDNAMES;
|
||||||
|
|
||||||
|
|
|
@ -1944,7 +1944,7 @@ class ADORecordSet_db2 extends ADORecordSet {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final private function processCoreFetch()
|
private function processCoreFetch()
|
||||||
{
|
{
|
||||||
switch ($this->fetchMode){
|
switch ($this->fetchMode){
|
||||||
case ADODB_FETCH_ASSOC:
|
case ADODB_FETCH_ASSOC:
|
||||||
|
@ -1970,7 +1970,7 @@ class ADORecordSet_db2 extends ADORecordSet {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final private function processMoveRecord()
|
private function processMoveRecord()
|
||||||
{
|
{
|
||||||
if (!$this->fields){
|
if (!$this->fields){
|
||||||
$this->EOF = true;
|
$this->EOF = true;
|
||||||
|
|
|
@ -95,7 +95,7 @@ class ADODB_oci8po extends ADODB_oci8 {
|
||||||
*
|
*
|
||||||
* @return string The modified statement
|
* @return string The modified statement
|
||||||
*/
|
*/
|
||||||
final private function extractBinds($sql,$inputarr)
|
private function extractBinds($sql,$inputarr)
|
||||||
{
|
{
|
||||||
$inString = false;
|
$inString = false;
|
||||||
$escaped = 0;
|
$escaped = 0;
|
||||||
|
|
|
@ -297,7 +297,7 @@ class ADODB_pdo_firebird extends ADODB_pdo
|
||||||
* @param int $fprecision
|
* @param int $fprecision
|
||||||
* @param bool $dialect3
|
* @param bool $dialect3
|
||||||
*/
|
*/
|
||||||
final private function _convertFieldType(&$fld, $ftype, $flen, $fscale, $fsubtype, $fprecision, $dialect3)
|
private function _convertFieldType(&$fld, $ftype, $flen, $fscale, $fsubtype, $fprecision, $dialect3)
|
||||||
{
|
{
|
||||||
$fscale = abs($fscale);
|
$fscale = abs($fscale);
|
||||||
$fld->max_length = $flen;
|
$fld->max_length = $flen;
|
||||||
|
|
|
@ -134,7 +134,7 @@ abstract class base implements \IteratorAggregate {
|
||||||
/**
|
/**
|
||||||
* Private constructor, use create() or restore() methods instead.
|
* Private constructor, use create() or restore() methods instead.
|
||||||
*/
|
*/
|
||||||
private final function __construct() {
|
final private function __construct() {
|
||||||
$this->data = array_fill_keys(self::$fields, null);
|
$this->data = array_fill_keys(self::$fields, null);
|
||||||
|
|
||||||
// Define some basic details.
|
// Define some basic details.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue