Skip to content

Commit c2f9af6

Browse files
authored
Merge pull request #3890 from oleibman/reorgsamples
Reorganize Samples
2 parents ec5e664 + 17845d8 commit c2f9af6

File tree

225 files changed

+29
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+29
-26
lines changed

Header.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
require __DIR__ . '/samples/Header.php';

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Parameter \\#1 \\$formula of method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\DataValidation\\:\\:setFormula1\\(\\) expects string, int given\\.$#"
5-
count: 1
6-
path: samples/Basic/15_Datavalidation.php
7-
8-
-
9-
message: "#^Parameter \\#1 \\$formula of method PhpOffice\\\\PhpSpreadsheet\\\\Cell\\\\DataValidation\\:\\:setFormula2\\(\\) expects string, int given\\.$#"
10-
count: 1
11-
path: samples/Basic/15_Datavalidation.php
12-
133
-
144
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
155
count: 1
File renamed without changes.
File renamed without changes.

samples/Basic/15_Datavalidation.php renamed to samples/Basic1/15_Datavalidation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
$validation->setError('Only numbers between 10 and 20 are allowed!');
4848
$validation->setPromptTitle('Allowed input');
4949
$validation->setPrompt('Only numbers between 10 and 20 are allowed.');
50-
$validation->setFormula1(10);
51-
$validation->setFormula2(20);
50+
$validation->setFormula1('10');
51+
$validation->setFormula2('20');
5252

5353
$validation = $spreadsheet->getActiveSheet()->getCell('B5')->getDataValidation();
5454
$validation->setType(DataValidation::TYPE_LIST);
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)