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

PHP 7.1 + Typehints #9

Merged
merged 8 commits into from
Aug 4, 2017
Merged

PHP 7.1 + Typehints #9

merged 8 commits into from
Aug 4, 2017

Conversation

mhujer
Copy link
Owner

@mhujer mhujer commented Dec 9, 2016

TODO:

  • declare(strict_types = 1);
  • DateTimeImmutable
  • PHP 7.1
  • doplnit typehinty pro primitivní typy
  • id transakce je int nebo float?
  • otestovat na reálných datech

Closes #8

@mhujer mhujer mentioned this pull request Dec 9, 2016
@mhujer
Copy link
Owner Author

mhujer commented Dec 9, 2016

@soukicz Až se k tomu dostaneš, tak bych tě poprosil o:

  1. review po commitech
  2. otestování u tebe a na tvých datech (když jsem zkusil naparsovat celou historii svého účtu u Fia, tak to pár špatných typehintů odhalilo)

@mhujer
Copy link
Owner Author

mhujer commented Jan 1, 2017

@soukicz ping?

@fmasa
Copy link
Contributor

fmasa commented May 27, 2017

@mhujer Co void return typy u metod?

@fmasa
Copy link
Contributor

fmasa commented May 27, 2017

Fio API PHP works with PHP 7.1 or higher.

@mhujer
Copy link
Owner Author

mhujer commented May 28, 2017

@fmasa jo, to je dobrý point, ty by tam mohly být taky 👍

@fmasa
Copy link
Contributor

fmasa commented May 28, 2017

Jinak je něco jinýho, co brání mergnutí? 🙂
Můžu ještě zkusit projet naše transakce a zjistit, jestli všechno funguje.

@mhujer
Copy link
Owner Author

mhujer commented May 28, 2017

@fmasa jo, to by bylo super, pokud bys to otestoval, já to nemám nikde v produkci

@fmasa
Copy link
Contributor

fmasa commented Jul 22, 2017

@mhujer
Tak potvrzuju, i na našich produkčních datech funguje ok. 🙂

Zvážil bych jen, jestli by getId() nemělo vracet místo float spíš string, protože API vždycky vrací 10 numerických znaků.

@mhujer mhujer merged commit 7d9c594 into master Aug 4, 2017
@mhujer
Copy link
Owner Author

mhujer commented Aug 4, 2017

@fmasa @soukicz Díky, konečně mergnuto!

@mhujer mhujer deleted the rf-and-php71 branch August 4, 2017 15:46
@mhujer
Copy link
Owner Author

mhujer commented Aug 4, 2017

Releasnuto 4.0.0

@mhujer mhujer changed the title [WIP] Typehints PHP 7.1 + Typehints Aug 4, 2017
@soukicz
Copy link
Contributor

soukicz commented Aug 8, 2017

Tak přeci jen problém. Pokusím se to izolovat a poslat PR
image

@fmasa
Copy link
Contributor

fmasa commented Aug 8, 2017

To by asi taky nemělo být float anyway.

@soukicz
Copy link
Contributor

soukicz commented Aug 8, 2017

Dělá to u EUR účtu, tak pošlu aspoň failující test, pokud nevymyslím rovnou opravu.

@soukicz
Copy link
Contributor

soukicz commented Aug 8, 2017

Tak nakonec plaším jen s prkotinou - #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants