Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant @throws tags from AbstractPlatform #5131

Merged
merged 1 commit into from
Dec 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,6 @@ abstract public function getDateDiffExpression(string $date1, string $date2): st
*
* @param string $date SQL expression producing the date.
* @param string $seconds SQL expression producing the number of seconds.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddSecondsExpression(string $date, string $seconds): string
{
Expand All @@ -549,8 +547,6 @@ public function getDateAddSecondsExpression(string $date, string $seconds): stri
*
* @param string $date SQL expression producing the date.
* @param string $seconds SQL expression producing the number of seconds.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubSecondsExpression(string $date, string $seconds): string
{
Expand All @@ -562,8 +558,6 @@ public function getDateSubSecondsExpression(string $date, string $seconds): stri
*
* @param string $date SQL expression producing the date.
* @param string $minutes SQL expression producing the number of minutes.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddMinutesExpression(string $date, string $minutes): string
{
Expand All @@ -575,8 +569,6 @@ public function getDateAddMinutesExpression(string $date, string $minutes): stri
*
* @param string $date SQL expression producing the date.
* @param string $minutes SQL expression producing the number of minutes.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubMinutesExpression(string $date, string $minutes): string
{
Expand All @@ -588,8 +580,6 @@ public function getDateSubMinutesExpression(string $date, string $minutes): stri
*
* @param string $date SQL expression producing the date.
* @param string $hours SQL expression producing the number of hours.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddHourExpression(string $date, string $hours): string
{
Expand All @@ -601,8 +591,6 @@ public function getDateAddHourExpression(string $date, string $hours): string
*
* @param string $date SQL expression producing the date.
* @param string $hours SQL expression producing the number of hours.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubHourExpression(string $date, string $hours): string
{
Expand All @@ -614,8 +602,6 @@ public function getDateSubHourExpression(string $date, string $hours): string
*
* @param string $date SQL expression producing the date.
* @param string $days SQL expression producing the number of days.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddDaysExpression(string $date, string $days): string
{
Expand All @@ -627,8 +613,6 @@ public function getDateAddDaysExpression(string $date, string $days): string
*
* @param string $date SQL expression producing the date.
* @param string $days SQL expression producing the number of days.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubDaysExpression(string $date, string $days): string
{
Expand All @@ -640,8 +624,6 @@ public function getDateSubDaysExpression(string $date, string $days): string
*
* @param string $date SQL expression producing the date.
* @param string $weeks SQL expression producing the number of weeks.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddWeeksExpression(string $date, string $weeks): string
{
Expand All @@ -653,8 +635,6 @@ public function getDateAddWeeksExpression(string $date, string $weeks): string
*
* @param string $date SQL expression producing the date.
* @param string $weeks SQL expression producing the number of weeks.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubWeeksExpression(string $date, string $weeks): string
{
Expand All @@ -666,8 +646,6 @@ public function getDateSubWeeksExpression(string $date, string $weeks): string
*
* @param string $date SQL expression producing the date.
* @param string $months SQL expression producing the number of months.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddMonthExpression(string $date, string $months): string
{
Expand All @@ -679,8 +657,6 @@ public function getDateAddMonthExpression(string $date, string $months): string
*
* @param string $date SQL expression producing the date.
* @param string $months SQL expression producing the number of months.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubMonthExpression(string $date, string $months): string
{
Expand All @@ -692,8 +668,6 @@ public function getDateSubMonthExpression(string $date, string $months): string
*
* @param string $date SQL expression producing the date.
* @param string $quarters SQL expression producing the number of quarters.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddQuartersExpression(string $date, string $quarters): string
{
Expand All @@ -705,8 +679,6 @@ public function getDateAddQuartersExpression(string $date, string $quarters): st
*
* @param string $date SQL expression producing the date.
* @param string $quarters SQL expression producing the number of quarters.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubQuartersExpression(string $date, string $quarters): string
{
Expand All @@ -718,8 +690,6 @@ public function getDateSubQuartersExpression(string $date, string $quarters): st
*
* @param string $date SQL expression producing the date.
* @param string $years SQL expression producing the number of years.
*
* @throws Exception If not supported on this platform.
*/
public function getDateAddYearsExpression(string $date, string $years): string
{
Expand All @@ -731,8 +701,6 @@ public function getDateAddYearsExpression(string $date, string $years): string
*
* @param string $date SQL expression producing the date.
* @param string $years SQL expression producing the number of years.
*
* @throws Exception If not supported on this platform.
*/
public function getDateSubYearsExpression(string $date, string $years): string
{
Expand Down Expand Up @@ -761,8 +729,6 @@ abstract protected function getDateArithmeticIntervalExpression(
*
* @param string $interval SQL expression describing the interval value
* @param int $multiplier Interval multiplier
*
* @throws Exception
*/
protected function multiplyInterval(string $interval, int $multiplier): string
{
Expand Down Expand Up @@ -1286,8 +1252,6 @@ public function getCreateForeignKeySQL(ForeignKeyConstraint $foreignKey, string
* This method returns an array of SQL statements, since some platforms need several statements.
*
* @return array<int, string>
*
* @throws Exception If not supported on this platform.
*/
abstract public function getAlterTableSQL(TableDiff $diff): array;

Expand Down Expand Up @@ -2473,8 +2437,6 @@ public function rollbackSavePoint(string $savepoint): string

/**
* Returns the keyword list instance of this platform.
*
* @throws Exception If no keyword list is specified.
*/
final public function getReservedKeywordsList(): KeywordList
{
Expand Down