Skip to content

Commit b172a88

Browse files
committed
Remove column platform option getters
1 parent c80ee81 commit b172a88

File tree

2 files changed

+8
-34
lines changed

2 files changed

+8
-34
lines changed

UPGRADE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ awareness about deprecated code.
88

99
# Upgrade to 5.0
1010

11+
## BC BREAK: Removed `Column` methods
12+
13+
The following `Column` methods have been removed:
14+
15+
- `Column::getPlatformOption()`
16+
- `Column::getPlatformOptions()`
17+
- `Column::hasPlatformOption()`
18+
1119
## BC BREAK: Removed support for the `version` column platform option
1220

1321
The `version` column platform option is no longer supported.

src/Schema/Column.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -270,40 +270,6 @@ public function getDefaultConstraintName(): ?string
270270
return $this->_platformOptions[SQLServerPlatform::OPTION_DEFAULT_CONSTRAINT_NAME] ?? null;
271271
}
272272

273-
/**
274-
* @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
275-
* instead.
276-
*
277-
* @return PlatformOptions
278-
*/
279-
public function getPlatformOptions(): array
280-
{
281-
return $this->_platformOptions;
282-
}
283-
284-
/**
285-
* @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
286-
* instead.
287-
*
288-
* @param key-of<PlatformOptions> $name
289-
*/
290-
public function hasPlatformOption(string $name): bool
291-
{
292-
return isset($this->_platformOptions[$name]);
293-
}
294-
295-
/**
296-
* @deprecated Use {@see getCharset()}, {@see getCollation()}, {@see getMinimumValue()} or {@see getMaximumValue()}
297-
* instead.
298-
*
299-
* @param key-of<PlatformOptions> $name
300-
*/
301-
public function getPlatformOption(string $name): mixed
302-
{
303-
/** @phpstan-ignore offsetAccess.notFound */
304-
return $this->_platformOptions[$name];
305-
}
306-
307273
public function getColumnDefinition(): ?string
308274
{
309275
return $this->_columnDefinition;

0 commit comments

Comments
 (0)