@@ -24,10 +24,7 @@ class Theme
24
24
'hlink ' => '0563C1 ' ,
25
25
'folHlink ' => '954F72 ' ,
26
26
];
27
- /** @deprecated 4.4.0 Use COLOR_SCHEME_2013_2022_NAME */
28
- public const COLOR_SCHEME_2013_PLUS_NAME = 'Office 2013+ ' ;
29
- /** @deprecated 4.4.0 Use COLOR_SCHEME_2013_2022 */
30
- public const COLOR_SCHEME_2013_PLUS = self ::COLOR_SCHEME_2013_2022 ;
27
+ private const COLOR_SCHEME_2013_PLUS_NAME = 'Office 2013+ ' ;
31
28
32
29
public const COLOR_SCHEME_2007_2010_NAME = 'Office 2007-2010 ' ;
33
30
public const COLOR_SCHEME_2007_2010 = [
@@ -177,16 +174,16 @@ public function getThemeColorName(): string
177
174
/** @param null|string[] $themeColors */
178
175
public function setThemeColorName (string $ name , ?array $ themeColors = null , ?Spreadsheet $ spreadsheet = null ): self
179
176
{
177
+ if ($ name === self ::COLOR_SCHEME_2013_PLUS_NAME ) {
178
+ // Ensure against this value being found in
179
+ // spreadsheets created while constant was public.
180
+ $ name = self ::COLOR_SCHEME_2013_2022_NAME ;
181
+ }
180
182
$ this ->themeColorName = $ name ;
181
183
if ($ name === self ::COLOR_SCHEME_2007_2010_NAME ) {
182
184
$ themeColors = $ themeColors ?? self ::COLOR_SCHEME_2007_2010 ;
183
185
$ this ->majorFontLatin = 'Cambria ' ;
184
186
$ this ->minorFontLatin = 'Calibri ' ;
185
- } elseif ($ name === self ::COLOR_SCHEME_2013_PLUS_NAME ) { //* @phpstan-ignore-line
186
- // delete this block when deprecated constants removed
187
- $ themeColors = $ themeColors ?? self ::COLOR_SCHEME_2013_PLUS ; //* @phpstan-ignore-line
188
- $ this ->majorFontLatin = 'Calibri Light ' ;
189
- $ this ->minorFontLatin = 'Calibri ' ;
190
187
} elseif ($ name === self ::COLOR_SCHEME_2013_2022_NAME ) {
191
188
$ themeColors = $ themeColors ?? self ::COLOR_SCHEME_2013_2022 ;
192
189
$ this ->majorFontLatin = 'Calibri Light ' ;
0 commit comments