@@ -24,10 +24,7 @@ class Theme
2424 'hlink ' => '0563C1 ' ,
2525 'folHlink ' => '954F72 ' ,
2626 ];
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+ ' ;
3128
3229 public const COLOR_SCHEME_2007_2010_NAME = 'Office 2007-2010 ' ;
3330 public const COLOR_SCHEME_2007_2010 = [
@@ -177,16 +174,16 @@ public function getThemeColorName(): string
177174 /** @param null|string[] $themeColors */
178175 public function setThemeColorName (string $ name , ?array $ themeColors = null , ?Spreadsheet $ spreadsheet = null ): self
179176 {
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+ }
180182 $ this ->themeColorName = $ name ;
181183 if ($ name === self ::COLOR_SCHEME_2007_2010_NAME ) {
182184 $ themeColors = $ themeColors ?? self ::COLOR_SCHEME_2007_2010 ;
183185 $ this ->majorFontLatin = 'Cambria ' ;
184186 $ 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 ' ;
190187 } elseif ($ name === self ::COLOR_SCHEME_2013_2022_NAME ) {
191188 $ themeColors = $ themeColors ?? self ::COLOR_SCHEME_2013_2022 ;
192189 $ this ->majorFontLatin = 'Calibri Light ' ;
0 commit comments