mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-11-04 09:46:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			446 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			446 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
if (PHP_VERSION_ID >= 80000) {
 | 
						|
	trait OTS_DB_PDOQuery
 | 
						|
	{
 | 
						|
		/**
 | 
						|
		 * @return PDOStatement
 | 
						|
		 */
 | 
						|
		public function query(?string $query = null, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement
 | 
						|
		{
 | 
						|
			return $this->doQuery($query, $fetchMode, ...$fetchModeArgs);
 | 
						|
		}
 | 
						|
	}
 | 
						|
} else {
 | 
						|
	trait OTS_DB_PDOQuery
 | 
						|
	{
 | 
						|
		/**
 | 
						|
		 * @return PDOStatement
 | 
						|
		 */
 | 
						|
		public function query()
 | 
						|
		{
 | 
						|
			return $this->doQuery(...func_get_args());
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |